#511662

Closest named color: Royal Purple (#4B006E). oklch(33.5% 0.133 317.5), rgb(81, 22, 98).

Aa

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

About this color

#511662 is a dark, moderately saturated purple. In OKLCH its lightness is 33%, its chroma 0.133 and its hue 318°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Royal Purple (#4B006E), ΔE 0.038 away. White text reads best on it, at 12.79:1.

Hue familyPurples
Lightnessdark (33%)
Chromamoderately saturated (0.133)
Temperaturein between
Nearest nameRoyal Purple (#4B006E)
Black text1.64:1
White text12.79:1

Values

HEX#511662
RGBrgb(81, 22, 98)
HSLhsl(287, 63%, 24%)
OKLCHoklch(33.5% 0.133 317.5)

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 #511662 12.79:1 AAA Lc -101.5 Preferred for body text
Black text on #511662 1.64:1 Fails Lc 0.0 Not readable
#511662 text on white 12.79:1 AAA Lc 98.1 Preferred for body text
#511662 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

    #F9F3FB

    oklch(97.1% 0.012 317.7)

  2. Step 100

    100

    #F2E4F7

    oklch(93.6% 0.029 317.2)

  3. Step 200

    200

    #E9CEF2

    oklch(88.5% 0.057 317.7)

  4. Step 300

    300

    #DBACEB

    oklch(80.8% 0.1 317.4)

  5. Step 400

    400

    #C97EE1

    oklch(70.8% 0.159 317.6)

  6. Step 500

    500

    #BA57D8

    oklch(63.1% 0.204 317.6)

  7. Step 600

    600

    #A535C5

    oklch(55.5% 0.222 317.6)

  8. Step 700

    700

    #8D26AB

    oklch(49.1% 0.206 317.2)

  9. Step 800

    800

    #73228A

    oklch(42.7% 0.171 317.6)

  10. Step 900

    900 (this color)

    #511662

    oklch(33.5% 0.133 317.5)

  11. Step 950

    950

    #371641

    oklch(27.1% 0.085 317.7)

Export this scale for Tailwind in the Tailwind colors tool

#511662 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)#002E640.127
Deuteranopia (no green cones)#1834600.115
Tritanopia (no blue cones)#50263B0.084
Achromatopsia (no color)#3232320.134

Harmonies

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

Complementary

The opposite hue (180°).

  • #511662

    #511662

    oklch(33.5% 0.133 317.5)

  • #184200

    #184200

    oklch(33.6% 0.103 137.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #511662

    #511662

    oklch(33.5% 0.133 317.5)

  • #362376

    #362376

    oklch(33.4% 0.134 287.3)

  • #620743

    #620743

    oklch(33.4% 0.133 347.2)

Open the analogous palette in the generator

Split complementary

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

  • #511662

    #511662

    oklch(33.5% 0.133 317.5)

  • #3B3900

    #3B3900

    oklch(33.6% 0.072 107.5)

  • #00422F

    #00422F

    oklch(33.6% 0.069 166.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #511662

    #511662

    oklch(33.5% 0.133 317.5)

  • #4A3100

    #4A3100

    oklch(33.4% 0.07 77.7)

  • #003F41

    #003F41

    oklch(33.4% 0.057 198.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #511662

    #511662

    oklch(33.5% 0.133 317.5)

  • #5B2400

    #5B2400

    oklch(33.5% 0.092 47.6)

  • #184200

    #184200

    oklch(33.6% 0.103 137.4)

  • #003D51

    #003D51

    oklch(33.6% 0.065 227.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #511662 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.