#511966

Closest named color: Royal Purple (#4B006E). oklch(34.1% 0.133 315.1), rgb(81, 25, 102).

Aa

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

About this color

#511966 is a dark, moderately saturated purple. In OKLCH its lightness is 34%, its chroma 0.133 and its hue 315°. 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.49:1.

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

Values

HEX#511966
RGBrgb(81, 25, 102)
HSLhsl(284, 61%, 25%)
OKLCHoklch(34.1% 0.133 315.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 #511966 12.49:1 AAA Lc -101.1 Preferred for body text
Black text on #511966 1.68:1 Fails Lc 0.0 Not readable
#511966 text on white 12.49:1 AAA Lc 97.6 Preferred for body text
#511966 text on black 1.68: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

    #F1E4F8

    oklch(93.5% 0.03 314)

  3. Step 200

    200

    #E7CFF3

    oklch(88.5% 0.055 314.5)

  4. Step 300

    300

    #D9ADED

    oklch(80.8% 0.1 315.1)

  5. Step 400

    400

    #C67FE4

    oklch(70.8% 0.159 315.2)

  6. Step 500

    500

    #B659DC

    oklch(63.1% 0.204 314.9)

  7. Step 600

    600

    #A237C9

    oklch(55.5% 0.222 315.3)

  8. Step 700

    700

    #8B27AE

    oklch(49.1% 0.207 315.4)

  9. Step 800

    800

    #71248D

    oklch(42.8% 0.171 315.3)

  10. Step 900

    900 (this color)

    #511966

    oklch(34.1% 0.133 315.1)

  11. Step 950

    950

    #351642

    oklch(26.9% 0.085 314.7)

Export this scale for Tailwind in the Tailwind colors tool

#511966 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)#0031680.123
Deuteranopia (no green cones)#1735640.112
Tritanopia (no blue cones)#4F293E0.086
Achromatopsia (no color)#3434340.134

Harmonies

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

Complementary

The opposite hue (180°).

  • #511966

    #511966

    oklch(34.1% 0.133 315.1)

  • #1F4300

    #1F4300

    oklch(34.2% 0.1 135)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #511966

    #511966

    oklch(34.1% 0.133 315.1)

  • #352679

    #352679

    oklch(34.1% 0.134 285.1)

  • #630B47

    #630B47

    oklch(34% 0.133 345.2)

Open the analogous palette in the generator

Split complementary

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

  • #511966

    #511966

    oklch(34.1% 0.133 315.1)

  • #3E3A00

    #3E3A00

    oklch(34.2% 0.073 105.3)

  • #00442F

    #00442F

    oklch(34.3% 0.072 164.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #511966

    #511966

    oklch(34.1% 0.133 315.1)

  • #4E3200

    #4E3200

    oklch(34.2% 0.072 74.9)

  • #004142

    #004142

    oklch(34% 0.058 196.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #511966

    #511966

    oklch(34.1% 0.133 315.1)

  • #5F2300

    #5F2300

    oklch(34.1% 0.097 45.1)

  • #1F4300

    #1F4300

    oklch(34.2% 0.1 135)

  • #003F51

    #003F51

    oklch(34.2% 0.064 224.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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