#511E4D

Closest named color: Grape Purple (#5D1451). oklch(33.1% 0.1 330.7), rgb(81, 30, 77).

Aa

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

About this color

#511E4D 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.030 away. White text reads best on it, at 12.78:1.

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

Values

HEX#511E4D
RGBrgb(81, 30, 77)
HSLhsl(305, 46%, 22%)
OKLCHoklch(33.1% 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 #511E4D 12.78:1 AAA Lc -101.8 Preferred for body text
Black text on #511E4D 1.64:1 Fails Lc 0.0 Not readable
#511E4D text on white 12.78:1 AAA Lc 98.4 Preferred for body text
#511E4D text on black 1.64: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

    #752F6F

    oklch(42.8% 0.129 331)

  10. Step 900

    900 (this color)

    #511E4D

    oklch(33.1% 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

#511E4D 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)#1B2E4E0.103
Deuteranopia (no green cones)#2B354C0.091
Tritanopia (no blue cones)#5423320.054
Achromatopsia (no color)#3232320.101

Harmonies

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

Complementary

The opposite hue (180°).

  • #511E4D

    #511E4D

    oklch(33.1% 0.1 330.7)

  • #00421B

    #00421B

    oklch(33.2% 0.09 150.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #511E4D

    #511E4D

    oklch(33.1% 0.1 330.7)

  • #3F2660

    #3F2660

    oklch(33.1% 0.1 301)

  • #5C1933

    #5C1933

    oklch(33.1% 0.1 0.5)

Open the analogous palette in the generator

Split complementary

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

  • #511E4D

    #511E4D

    oklch(33.1% 0.1 330.7)

  • #303B00

    #303B00

    oklch(33% 0.079 120.6)

  • #003F37

    #003F37

    oklch(33% 0.059 181.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #511E4D

    #511E4D

    oklch(33.1% 0.1 330.7)

  • #433400

    #433400

    oklch(33.2% 0.068 90.9)

  • #003D46

    #003D46

    oklch(33% 0.057 211)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #511E4D

    #511E4D

    oklch(33.1% 0.1 330.7)

  • #512A00

    #512A00

    oklch(33% 0.077 60.4)

  • #00421B

    #00421B

    oklch(33.2% 0.09 150.5)

  • #003959

    #003959

    oklch(33% 0.077 241.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #511E4D 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.