BlueViolet color

Inspect BlueViolet (#8A2BE2) in HEX, RGB, HSL, LCH and OKLCH, check its contrast, and copy the value you need.

#8a2be2

BlueViolet

BlueViolet color values

BlueViolet

#8A2BE2

White text reads best on this background, at 5.96:1.

BlueViolet is one of the 148 CSS named colors, and resolves to #8A2BE2 in every browser. In numbers that is rgb(138, 43, 226) and hsl(271, 76%, 53%). Perceptually it is a mid-toned, vivid color: OKLCH puts its lightness at 53% and its chroma at 0.25. It sits in the purples at 301 degrees of OKLCH hue, and reads as a cool color.

White text clears WCAG AA on a BlueViolet background at 5.96:1. At this chroma it is loud enough to be an accent or a call to action, but it will fight anything else vivid placed next to it.

The closest CSS named colors to BlueViolet, measured with CIEDE2000, are DarkViolet (#9400D3), DarkOrchid (#9932CC), SlateBlue (#6A5ACD). If BlueViolet is not quite right, those are the nearest keywords to try before reaching for a custom value.

HEX

#8A2BE2

RGB

rgb(138, 43, 226)

HSL

hsl(271, 76%, 53%)

HWB

hwb(271 17% 11%)

CMYK

cmyk(39%, 81%, 0%, 11%)

LAB

lab(41.21 63.01 -75.96)

LCH

lch(41.21 98.69 309.68)

OKLCH

oklch(53.38% 0.2503 301.37)

Is BlueViolet accessible?

WCAG asks for 4.5:1 between body text and its background. On #8A2BE2 white text measures 5.96:1 and black text 3.52:1, so white clears it and black does not.

White text on BlueViolet

WCAG 2.2

5.96:1

APCA

Lc 83

Passes AA body text

Fails AAA body text

Passes AA large text

Black text on BlueViolet

WCAG 2.2

3.52:1

APCA

Lc 25

Fails AA body text

Fails AAA body text

Passes AA large text

Check BlueViolet against any other color in the contrast checker.

Tints and shades of BlueViolet

BlueViolet sits at 53% OKLCH lightness. Holding its hue and chroma and moving only that value carries it up to #FAF7FF and down to #0A0019, which keeps the family recognizable instead of letting it drift toward gray the way a plain HSL ramp does.

Tints, toward white

#A451FF

20% lighter

#B783FF

40% lighter

#CCACFF

60% lighter

#E2D2FF

80% lighter

#FAF7FF

100% lighter

Shades, toward black

#7100C0

20% darker

#540092

40% darker

#3A0067

60% darker

#21003E

80% darker

#0A0019

100% darker

Build a full accessible scale from #8A2BE2 in the shade generator.

Colors that go with BlueViolet

Hues rotated around #8A2BE2 in OKLCH, then pulled back into the sRGB gamut. Each swatch is labelled with the nearest CSS named color so you have a keyword to start from.

Complementary

BlueViolet sits at 301 degrees. Rotating it a half turn lands on 121 degrees, the hue directly opposite. It is the strongest pairing you can make without changing lightness, and the one most likely to vibrate if you use both at full chroma.

Analogous

The neighbors of BlueViolet at 271 and 331 degrees. They stay close enough to read as the same family, which is what you want for hover states, secondary surfaces and gradients.

Triadic

301, 61 and 181 degrees divide the wheel into thirds. Balanced enough to carry a whole palette without one color dominating the other two.

Split complementary

Instead of the complement at 121 degrees, this pair flanks it at 91 and 151. You keep most of the contrast of a complementary pairing while losing the harshness.

Explore more combinations around BlueViolet on the color wheel.

How BlueViolet looks with color blindness

The biggest shift is under achromatopsia, where #8A2BE2 reads as #4C4C4D, 31.1 CIEDE2000 units away. If BlueViolet is the only thing marking a state or a series, roughly one viewer in twelve will miss it.

Protanopia

#1448EB

Deuteranopia

#244EDB

Tritanopia

#823F63

Achromatopsia

#4C4C4D

Colors similar to BlueViolet

The nearest CSS keywords to #8A2BE2, ranked by perceptual distance rather than by how close their hex digits happen to look.