DarkMagenta color

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

#8b008b

DarkMagenta

DarkMagenta color values

DarkMagenta

#8B008B

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

DarkMagenta is one of the 148 CSS named colors, and resolves to #8B008B in every browser. In numbers that is rgb(139, 0, 139) and hsl(300, 100%, 27%). Perceptually it is a dark, vivid color: OKLCH puts its lightness at 45% and its chroma at 0.205. It sits in the pinks at 328 degrees of OKLCH hue, and reads as a cool color.

White text clears WCAG AA on a DarkMagenta background at 8.5: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 DarkMagenta, measured with CIEDE2000, are Purple (#800080), RebeccaPurple (#663399), DarkViolet (#9400D3). If DarkMagenta is not quite right, those are the nearest keywords to try before reaching for a custom value.

HEX

#8B008B

RGB

rgb(139, 0, 139)

HSL

hsl(300, 100%, 27%)

HWB

hwb(300 0% 45%)

CMYK

cmyk(0%, 100%, 0%, 45%)

LAB

lab(32.5 59.56 -38.52)

LCH

lch(32.5 70.94 327.11)

OKLCH

oklch(44.68% 0.2053 328.36)

Is DarkMagenta accessible?

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

White text on DarkMagenta

WCAG 2.2

8.5:1

APCA

Lc 91

Passes AA body text

Passes AAA body text

Passes AA large text

Black text on DarkMagenta

WCAG 2.2

2.47:1

APCA

Lc 17

Fails AA body text

Fails AAA body text

Fails AA large text

Check DarkMagenta against any other color in the contrast checker.

Tints and shades of DarkMagenta

DarkMagenta sits at 45% 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

#AE35AD

20% lighter

#D259D0

40% lighter

#F77CF3

60% lighter

#FFBAFB

80% lighter

#FFF5FE

100% lighter

Shades, toward black

#700070

20% darker

#550055

40% darker

#3C003C

60% darker

#250025

80% darker

#100010

100% darker

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

Colors that go with DarkMagenta

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

DarkMagenta 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 DarkMagenta 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 DarkMagenta on the color wheel.

How DarkMagenta looks with color blindness

The biggest shift is under achromatopsia, where #8B008B reads as #282828, 30.3 CIEDE2000 units away. If DarkMagenta is the only thing marking a state or a series, roughly one viewer in twelve will miss it.

Protanopia

#001E92

Deuteranopia

#132E85

Tritanopia

#960A2B

Achromatopsia

#282828

Colors similar to DarkMagenta

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