#8F1D7E

Closest named color: Dark Magenta (#8B008B). oklch(45.9% 0.18 335.2), rgb(143, 29, 126).

Aa

White text reads best on this color (7.93:1).

About this color

#8F1D7E is a medium-dark, vivid purple. In OKLCH its lightness is 46%, its chroma 0.180 and its hue 335°. Its hue sits on the warm side of the wheel. The nearest named color is Dark Magenta (#8B008B), ΔE 0.036 away. White text reads best on it, at 7.93:1.

Hue familyPurples
Lightnessmedium-dark (46%)
Chromavivid (0.180)
Temperaturewarm
Nearest nameDark Magenta (#8B008B)
Black text2.64:1
White text7.93:1

Values

HEX#8F1D7E
RGBrgb(143, 29, 126)
HSLhsl(309, 66%, 34%)
OKLCHoklch(45.9% 0.18 335.2)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #8F1D7E 7.93:1 AAA Lc -91.0 Preferred for body text
Black text on #8F1D7E 2.64:1 Fails Lc 17.8 Dividers and decoration only
#8F1D7E text on white 7.93:1 AAA Lc 86.2 Fine for body text
#8F1D7E text on black 2.64:1 Fails Lc -15.9 Dividers and decoration only

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 800.

  1. Step 50

    50

    #FCF2F9

    oklch(97.1% 0.014 336.1)

  2. Step 100

    100

    #F8E3F2

    oklch(93.7% 0.03 335.9)

  3. Step 200

    200

    #F3CBE9

    oklch(88.5% 0.06 335)

  4. Step 300

    300

    #EBA7DB

    oklch(80.9% 0.104 335.3)

  5. Step 400

    400

    #DF73C9

    oklch(70.7% 0.169 335.4)

  6. Step 500

    500

    #D347BB

    oklch(63.1% 0.215 335.4)

  7. Step 600

    600

    #BE1AA7

    oklch(55.6% 0.234 335.3)

  8. Step 700

    700

    #A3018F

    oklch(49% 0.217 335.2)

  9. Step 800

    800 (this color)

    #8F1D7E

    oklch(45.9% 0.18 335.2)

  10. Step 900

    900

    #6B195E

    oklch(37.8% 0.14 335.2)

  11. Step 950

    950

    #3F1137

    oklch(27% 0.088 335.3)

Export this scale for Tailwind in the Tailwind colors tool

#8F1D7E with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#1D46810.198
Deuteranopia (no green cones)#48577B0.168
Tritanopia (no blue cones)#96274C0.090
Achromatopsia (no color)#5151510.182

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #8F1D7E

    #8F1D7E

    oklch(45.9% 0.18 335.2)

  • #00693B

    #00693B

    oklch(45.8% 0.112 155.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #8F1D7E

    #8F1D7E

    oklch(45.9% 0.18 335.2)

  • #7030A6

    #7030A6

    oklch(45.8% 0.181 305)

  • #A1084A

    #A1084A

    oklch(45.9% 0.18 5.1)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #8F1D7E

    #8F1D7E

    oklch(45.9% 0.18 335.2)

  • #496200

    #496200

    oklch(45.9% 0.115 125.1)

  • #00665E

    #00665E

    oklch(45.9% 0.081 185.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #8F1D7E

    #8F1D7E

    oklch(45.9% 0.18 335.2)

  • #685600

    #685600

    oklch(45.8% 0.094 94.9)

  • #006374

    #006374

    oklch(46% 0.081 214.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #8F1D7E

    #8F1D7E

    oklch(45.9% 0.18 335.2)

  • #7E4900

    #7E4900

    oklch(45.8% 0.103 64.6)

  • #00693B

    #00693B

    oklch(45.8% 0.112 155.5)

  • #005C93

    #005C93

    oklch(45.9% 0.115 245)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #8F1D7E, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #8F1D7E in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.