Skip to content

Blue violet

Blue violet is a medium, rich color between blue and violet. Hex code #8A2BE2.

Blue violet#8A2BE2

Blue violet color codes

  • CSS nameblueviolet
  • HEX#8A2BE2
  • RGBrgb(138, 43, 226)
  • HSLhsl(271, 76%, 53%)
  • OKLCHoklch(53.4% 0.25 301.4)
HSB and CMYK values
  • HSB / HSVhsb(271, 81%, 89%)
  • CMYKC39 M81 Y0 K11

White text

5.95:1 · passes WCAG AA

Black text

3.52:1 · passes WCAG AA for large text only

Shades of blue violet

A darker shade of blue violet is #6802B2 (600), and a lighter one is #B17CFA (300).

Colors that go with blue violet

Complementary

Analogous

Triadic

The complementary color of blue violet is #83E22B.

Click a color to copy its hex code.

Colors similar to blue violet

Each compared with blue violet.

About this color

Blue violet in CSS and design

Blue violet is one of the extended color keywords, which mostly go back to the X11 color names of Unix systems. These four lines all give the same blue violet:

color: blueviolet;
color: #8A2BE2;
color: rgb(138, 43, 226);
color: hsl(271, 76%, 53%);

Frequently asked questions

What is the hex code for blue violet?

#8A2BE2. In CSS you can also use the keyword blueviolet, which works in every browser.

What is blue violet in RGB and HSL?

In RGB it is rgb(138, 43, 226) and in HSL hsl(271, 76%, 53%). In CMYK it is about C39 M81 Y0 K11, though printed colors vary with paper and ink.

Should I use black or white text on blue violet?

White text works better: it has a contrast ratio of 5.95:1 and passes WCAG AA. Black text reaches 3.52:1.

What is the complementary color of blue violet?

#83E22B. It sits opposite blue violet on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.

Which colors go with blue violet?

For strong contrast, pair it with its complementary color #83E22B. For a calmer look, combine it with its analogous neighbors #2F2BE2 and #E22BDE. The palette generator builds more combinations.