#5F2766

Closest named color: Grape Purple (#5D1451). oklch(38% 0.119 323.1), rgb(95, 39, 102).

Aa

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

About this color

#5F2766 is a dark, moderately saturated purple. In OKLCH its lightness is 38%, its chroma 0.119 and its hue 323°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Grape Purple (#5D1451), ΔE 0.047 away. White text reads best on it, at 10.66:1.

Hue familyPurples
Lightnessdark (38%)
Chromamoderately saturated (0.119)
Temperaturein between
Nearest nameGrape Purple (#5D1451)
Black text1.96:1
White text10.66:1

Values

HEX#5F2766
RGBrgb(95, 39, 102)
HSLhsl(293, 45%, 28%)
OKLCHoklch(38% 0.119 323.1)

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 #5F2766 10.66:1 AAA Lc -98.2 Preferred for body text
Black text on #5F2766 1.96:1 Fails Lc 9.7 Not readable
#5F2766 text on white 10.66:1 AAA Lc 94.2 Preferred for body text
#5F2766 text on black 1.96:1 Fails Lc -8.3 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

    #FAF3FA

    oklch(97.2% 0.012 325.7)

  2. Step 100

    100

    #F3E4F4

    oklch(93.5% 0.027 323.9)

  3. Step 200

    200

    #EACFEC

    oklch(88.6% 0.049 323.8)

  4. Step 300

    300

    #DDADE2

    oklch(80.8% 0.09 323.2)

  5. Step 400

    400

    #CB80D4

    oklch(70.7% 0.143 323.1)

  6. Step 500

    500

    #BC5CC8

    oklch(63.1% 0.183 323.1)

  7. Step 600

    600

    #A73DB5

    oklch(55.6% 0.199 322.8)

  8. Step 700

    700

    #8F2E9B

    oklch(49.1% 0.184 323.1)

  9. Step 800

    800

    #74287E

    oklch(42.7% 0.153 322.9)

  10. Step 900

    900 (this color)

    #5F2766

    oklch(38% 0.119 323.1)

  11. Step 950

    950

    #37173B

    oklch(26.9% 0.076 323.1)

Export this scale for Tailwind in the Tailwind colors tool

#5F2766 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)#1C3A680.117
Deuteranopia (no green cones)#3040640.101
Tritanopia (no blue cones)#6130420.072
Achromatopsia (no color)#3E3E3E0.120

Harmonies

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

Complementary

The opposite hue (180°).

  • #5F2766

    #5F2766

    oklch(38% 0.119 323.1)

  • #0A510C

    #0A510C

    oklch(37.9% 0.119 143)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5F2766

    #5F2766

    oklch(38% 0.119 323.1)

  • #46327B

    #46327B

    oklch(38% 0.119 292.4)

  • #6F1F48

    #6F1F48

    oklch(38% 0.12 352.8)

Open the analogous palette in the generator

Split complementary

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

  • #5F2766

    #5F2766

    oklch(38% 0.119 323.1)

  • #434600

    #434600

    oklch(37.9% 0.084 112.5)

  • #004E3F

    #004E3F

    oklch(37.8% 0.072 174.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5F2766

    #5F2766

    oklch(38% 0.119 323.1)

  • #563E00

    #563E00

    oklch(38% 0.078 83.8)

  • #004C51

    #004C51

    oklch(37.9% 0.065 202.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5F2766

    #5F2766

    oklch(38% 0.119 323.1)

  • #683100

    #683100

    oklch(38% 0.096 53.7)

  • #0A510C

    #0A510C

    oklch(37.9% 0.119 143)

  • #004865

    #004865

    oklch(37.8% 0.079 233.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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