#511E66

Closest named color: Royal Purple (#4B006E). oklch(34.7% 0.126 314.4), rgb(81, 30, 102).

Aa

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

About this color

#511E66 is a dark, moderately saturated purple. In OKLCH its lightness is 35%, its chroma 0.126 and its hue 314°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Royal Purple (#4B006E), ΔE 0.047 away. White text reads best on it, at 12.15:1.

Hue familyPurples
Lightnessdark (35%)
Chromamoderately saturated (0.126)
Temperaturein between
Nearest nameRoyal Purple (#4B006E)
Black text1.72:1
White text12.15:1

Values

HEX#511E66
RGBrgb(81, 30, 102)
HSLhsl(283, 55%, 26%)
OKLCHoklch(34.7% 0.126 314.4)

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 #511E66 12.15:1 AAA Lc -100.7 Preferred for body text
Black text on #511E66 1.72:1 Fails Lc 0.0 Not readable
#511E66 text on white 12.15:1 AAA Lc 97.1 Preferred for body text
#511E66 text on black 1.72: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

    #F9F3FC

    oklch(97.1% 0.013 314.8)

  2. Step 100

    100

    #F1E5F7

    oklch(93.7% 0.027 314.7)

  3. Step 200

    200

    #E6CFF2

    oklch(88.4% 0.053 314.2)

  4. Step 300

    300

    #D7AEEB

    oklch(80.8% 0.095 314.5)

  5. Step 400

    400

    #C381E1

    oklch(70.6% 0.151 314.6)

  6. Step 500

    500

    #B35DD9

    oklch(63.1% 0.194 314.3)

  7. Step 600

    600

    #9F3EC6

    oklch(55.7% 0.21 314.5)

  8. Step 700

    700

    #882EAB

    oklch(49.1% 0.196 314.6)

  9. Step 800

    800

    #6E288B

    oklch(42.7% 0.163 314.2)

  10. Step 900

    900 (this color)

    #511E66

    oklch(34.7% 0.126 314.4)

  11. Step 950

    950

    #341841

    oklch(27% 0.079 313.9)

Export this scale for Tailwind in the Tailwind colors tool

#511E66 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)#0033680.119
Deuteranopia (no green cones)#1B37640.105
Tritanopia (no blue cones)#4F2C3F0.083
Achromatopsia (no color)#3636360.127

Harmonies

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

Complementary

The opposite hue (180°).

  • #511E66

    #511E66

    oklch(34.7% 0.126 314.4)

  • #214400

    #214400

    oklch(34.6% 0.1 134.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #511E66

    #511E66

    oklch(34.7% 0.126 314.4)

  • #362A77

    #362A77

    oklch(34.7% 0.126 284.9)

  • #631349

    #631349

    oklch(34.7% 0.126 344.4)

Open the analogous palette in the generator

Split complementary

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

  • #511E66

    #511E66

    oklch(34.7% 0.126 314.4)

  • #403B00

    #403B00

    oklch(34.6% 0.073 104.2)

  • #004530

    #004530

    oklch(34.6% 0.073 165.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #511E66

    #511E66

    oklch(34.7% 0.126 314.4)

  • #503300

    #503300

    oklch(34.7% 0.073 74.3)

  • #004343

    #004343

    oklch(34.7% 0.059 194.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #511E66

    #511E66

    oklch(34.7% 0.126 314.4)

  • #622400

    #622400

    oklch(34.8% 0.1 44.8)

  • #214400

    #214400

    oklch(34.6% 0.1 134.4)

  • #004153

    #004153

    oklch(34.9% 0.065 223.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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