Purple color

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

#800080

Purple

Purple color values

Purple

#800080

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

Purple is one of the 148 CSS named colors, and resolves to #800080 in every browser. In numbers that is rgb(128, 0, 128) and hsl(300, 100%, 25%). Perceptually it is a dark, vivid color: OKLCH puts its lightness at 42% and its chroma at 0.193. It sits in the pinks at 328 degrees of OKLCH hue, and reads as a cool color.

White text clears WCAG AA on a Purple background at 9.42:1, and AAA as well. 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 Purple, measured with CIEDE2000, are DarkMagenta (#8B008B), RebeccaPurple (#663399), Indigo (#4B0082). If Purple is not quite right, those are the nearest keywords to try before reaching for a custom value.

HEX

#800080

RGB

rgb(128, 0, 128)

HSL

hsl(300, 100%, 25%)

HWB

hwb(300 0% 50%)

CMYK

cmyk(0%, 100%, 0%, 50%)

LAB

lab(29.69 56.11 -36.29)

LCH

lch(29.69 66.83 327.11)

OKLCH

oklch(42.09% 0.1935 328.36)

Is Purple accessible?

WCAG asks for 4.5:1 between body text and its background. On #800080 white text measures 9.42:1 and black text 2.23:1, so white clears it and black does not.

White text on Purple

WCAG 2.2

9.42:1

APCA

Lc 94

Passes AA body text

Passes AAA body text

Passes AA large text

Black text on Purple

WCAG 2.2

2.23:1

APCA

Lc 14

Fails AA body text

Fails AAA body text

Fails AA large text

Check Purple against any other color in the contrast checker.

Tints and shades of Purple

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

Tints, toward white

#A434A3

20% lighter

#CA59C7

40% lighter

#F07DEC

60% lighter

#FFB7FB

80% lighter

#FFF5FE

100% lighter

Shades, toward black

#670067

20% darker

#4F004F

40% darker

#380038

60% darker

#230023

80% darker

#100010

100% darker

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

Colors that go with Purple

Hues rotated around #800080 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

Purple sits at 328 degrees. Rotating it a half turn lands on 148 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 Purple at 298 and 358 degrees. They stay close enough to read as the same family, which is what you want for hover states, secondary surfaces and gradients.

Triadic

328, 88 and 208 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 148 degrees, this pair flanks it at 118 and 178. You keep most of the contrast of a complementary pairing while losing the harshness.

Explore more combinations around Purple on the color wheel.

How Purple looks with color blindness

The biggest shift is under achromatopsia, where #800080 reads as #252425, 28.8 CIEDE2000 units away. If Purple is the only thing marking a state or a series, roughly one viewer in twelve will miss it.

Protanopia

#001B86

Deuteranopia

#122A7B

Tritanopia

#8A0928

Achromatopsia

#252425

Colors similar to Purple

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