#521F4E

Closest named color: Grape Purple (#5D1451). oklch(33.4% 0.1 330.7), rgb(82, 31, 78).

Aa

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

About this color

#521F4E is a dark, moderately saturated purple. In OKLCH its lightness is 33%, its chroma 0.100 and its hue 331°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Grape Purple (#5D1451), ΔE 0.029 away. White text reads best on it, at 12.61:1.

Hue familyPurples
Lightnessdark (33%)
Chromamoderately saturated (0.100)
Temperaturein between
Nearest nameGrape Purple (#5D1451)
Black text1.66:1
White text12.61:1

Values

HEX#521F4E
RGBrgb(82, 31, 78)
HSLhsl(305, 45%, 22%)
OKLCHoklch(33.4% 0.1 330.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 #521F4E 12.61:1 AAA Lc -101.6 Preferred for body text
Black text on #521F4E 1.66:1 Fails Lc 0.0 Not readable
#521F4E text on white 12.61:1 AAA Lc 98.1 Preferred for body text
#521F4E text on black 1.66:1 Fails Lc 0.0 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

    #FAF3F9

    oklch(97.1% 0.011 330.1)

  2. Step 100

    100

    #F3E5F1

    oklch(93.6% 0.022 330.3)

  3. Step 200

    200

    #EAD0E6

    oklch(88.6% 0.041 331)

  4. Step 300

    300

    #DDAFD7

    oklch(80.8% 0.075 330.7)

  5. Step 400

    400

    #CB84C3

    oklch(70.7% 0.12 330.8)

  6. Step 500

    500

    #BC63B4

    oklch(63.1% 0.153 330.6)

  7. Step 600

    600

    #A747A0

    oklch(55.6% 0.167 330.4)

  8. Step 700

    700

    #8F3789

    oklch(49% 0.156 330.4)

  9. Step 800

    800

    #742F6F

    oklch(42.6% 0.128 330.4)

  10. Step 900

    900 (this color)

    #521F4E

    oklch(33.4% 0.1 330.7)

  11. Step 950

    950

    #371A35

    oklch(27% 0.063 329.7)

Export this scale for Tailwind in the Tailwind colors tool

#521F4E 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)#1C2F4F0.103
Deuteranopia (no green cones)#2C364D0.091
Tritanopia (no blue cones)#5524330.054
Achromatopsia (no color)#3333330.101

Harmonies

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

Complementary

The opposite hue (180°).

  • #521F4E

    #521F4E

    oklch(33.4% 0.1 330.7)

  • #00431C

    #00431C

    oklch(33.5% 0.091 150.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #521F4E

    #521F4E

    oklch(33.4% 0.1 330.7)

  • #402761

    #402761

    oklch(33.5% 0.1 301.1)

  • #5D1A34

    #5D1A34

    oklch(33.4% 0.1 0.3)

Open the analogous palette in the generator

Split complementary

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

  • #521F4E

    #521F4E

    oklch(33.4% 0.1 330.7)

  • #313C00

    #313C00

    oklch(33.4% 0.08 120.5)

  • #004038

    #004038

    oklch(33.3% 0.06 181.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #521F4E

    #521F4E

    oklch(33.4% 0.1 330.7)

  • #443400

    #443400

    oklch(33.3% 0.068 89.7)

  • #003E47

    #003E47

    oklch(33.4% 0.058 210.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #521F4E

    #521F4E

    oklch(33.4% 0.1 330.7)

  • #532B00

    #532B00

    oklch(33.5% 0.078 60.2)

  • #00431C

    #00431C

    oklch(33.5% 0.091 150.8)

  • #003A5A

    #003A5A

    oklch(33.3% 0.078 241)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #521F4E 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.