Blue Violet Color

HEX #8A2BE2 · rgb(138, 43, 226) · hsl(271, 76%, 53%)

Blue Violet color codes

Blue Violet is one of the named colors every browser understands. In CSS you can write it as blueviolet or #8A2BE2.

FormatValue
HEX#8A2BE2
RGBrgb(138, 43, 226)
HSLhsl(271, 76%, 53%)
CMYK39%, 81%, 0%, 11%
CSS nameblueviolet
.example {
  color: blueviolet;
  background-color: #8A2BE2;
  border-color: rgb(138, 43, 226);
}

Colors that go with blue violet

These harmonies keep the same saturation and lightness and rotate the hue around the color wheel.

#83E22BComplementary
#2F2BE2Analogous
#E22BDEAnalogous
#E28A2BTriadic
#2BE28ATriadic

Tints and shades of blue violet

Tints mix the color with white; shades mix it with black.

#F3EAFC90% white
#E2CAF875% white
#D0AAF360% white
#BF8AEF45% white
#AD6BEB30% white
#9C4BE615% white
#8A2BE2Base
Blue Violet
#7525C015% black
#611E9E30% black
#4C187C45% black
#37115A60% black
#230B3975% black
#0E041790% black

Contrast and readability

Black text
3.52:1
large text only
White text
5.96:1
passes AA

Use white text on blue violet. Ratios follow the WCAG 2 formula; AA needs 4.5:1 for normal text and 3:1 for large text.

Frequently asked questions

What is the hex code for blue violet?

The hex code for blue violet is #8A2BE2.

What is the RGB value of blue violet?

Blue Violet is rgb(138, 43, 226): 138 red, 43 green and 226 blue on a 0 to 255 scale.

What color goes with blue violet?

Its complementary color is #83E22B, which is closest to the named color yellow green. Analogous and triadic matches are listed on this page.

Should text on blue violet be black or white?

Use white text. The contrast ratio is 3.52:1 with black and 5.96:1 with white. WCAG AA asks for at least 4.5:1 for normal text.

Similar named colors

Pick any other color with the color picker, or browse all named colors.