#5F217C

Closest named color: Rebecca Purple (#663399). oklch(38.7% 0.151 312.7), rgb(95, 33, 124).

Aa

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

About this color

#5F217C is a dark, vivid purple. In OKLCH its lightness is 39%, its chroma 0.151 and its hue 313°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Rebecca Purple (#663399), ΔE 0.060 away. White text reads best on it, at 10.52:1.

Hue familyPurples
Lightnessdark (39%)
Chromavivid (0.151)
Temperaturein between
Nearest nameRebecca Purple (#663399)
Black text1.99:1
White text10.52:1

Values

HEX#5F217C
RGBrgb(95, 33, 124)
HSLhsl(281, 58%, 31%)
OKLCHoklch(38.7% 0.151 312.7)

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 #5F217C 10.52:1 AAA Lc -97.7 Preferred for body text
Black text on #5F217C 1.99:1 Fails Lc 10.3 Not readable
#5F217C text on white 10.52:1 AAA Lc 93.6 Preferred for body text
#5F217C text on black 1.99:1 Fails Lc -8.9 Not readable

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 900.

  1. Step 50

    50

    #F9F3FD

    oklch(97.2% 0.015 312.2)

  2. Step 100

    100

    #F2E4FA

    oklch(93.6% 0.033 313.5)

  3. Step 200

    200

    #E8CEF7

    oklch(88.6% 0.062 313.2)

  4. Step 300

    300

    #DAABF5

    oklch(80.9% 0.113 312.8)

  5. Step 400

    400

    #C77AF0

    oklch(70.7% 0.181 312.7)

  6. Step 500

    500

    #B850EA

    oklch(63.1% 0.23 312.7)

  7. Step 600

    600

    #A426D9

    oklch(55.6% 0.252 312.7)

  8. Step 700

    700

    #8C13BC

    oklch(49.1% 0.234 312.5)

  9. Step 800

    800

    #721798

    oklch(42.7% 0.194 312.7)

  10. Step 900

    900 (this color)

    #5F217C

    oklch(38.7% 0.151 312.7)

  11. Step 950

    950

    #361447

    oklch(27.1% 0.095 312.5)

Export this scale for Tailwind in the Tailwind colors tool

#5F217C 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)#003C7F0.134
Deuteranopia (no green cones)#18407A0.125
Tritanopia (no blue cones)#5C344C0.100
Achromatopsia (no color)#3F3F3F0.152

Harmonies

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

Complementary

The opposite hue (180°).

  • #5F217C

    #5F217C

    oklch(38.7% 0.151 312.7)

  • #2C4F00

    #2C4F00

    oklch(38.6% 0.108 132.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5F217C

    #5F217C

    oklch(38.7% 0.151 312.7)

  • #3D3190

    #3D3190

    oklch(38.7% 0.15 282.6)

  • #751159

    #751159

    oklch(38.6% 0.151 342.7)

Open the analogous palette in the generator

Split complementary

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

  • #5F217C

    #5F217C

    oklch(38.7% 0.151 312.7)

  • #4D4500

    #4D4500

    oklch(38.6% 0.081 101.9)

  • #005237

    #005237

    oklch(38.8% 0.084 162.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5F217C

    #5F217C

    oklch(38.7% 0.151 312.7)

  • #5F3C00

    #5F3C00

    oklch(38.8% 0.083 72.6)

  • #004F4E

    #004F4E

    oklch(38.7% 0.066 193.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5F217C

    #5F217C

    oklch(38.7% 0.151 312.7)

  • #742900

    #742900

    oklch(38.7% 0.115 42.8)

  • #2C4F00

    #2C4F00

    oklch(38.6% 0.108 132.5)

  • #004C60

    #004C60

    oklch(38.7% 0.072 223)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #5F217C 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.