#51517C

Closest named color: Dusk (#4E5481). oklch(45.4% 0.07 283.3), rgb(81, 81, 124).

Aa

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

About this color

#51517C is a medium-dark, muted purple. In OKLCH its lightness is 45%, its chroma 0.070 and its hue 283°. Its hue sits on the cool side of the wheel. The nearest named color is Dusk (#4E5481), ΔE 0.011 away. White text reads best on it, at 7.45:1.

Hue familyPurples
Lightnessmedium-dark (45%)
Chromamuted (0.070)
Temperaturecool
Nearest nameDusk (#4E5481)
Black text2.81:1
White text7.45:1

Values

HEX#51517C
RGBrgb(81, 81, 124)
HSLhsl(240, 21%, 40%)
OKLCHoklch(45.4% 0.07 283.3)

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 #51517C 7.45:1 AAA Lc -90.7 Preferred for body text
Black text on #51517C 2.81:1 Fails Lc 18.2 Dividers and decoration only
#51517C text on white 7.45:1 AAA Lc 85.9 Fine for body text
#51517C text on black 2.81:1 Fails Lc -16.2 Dividers and decoration only

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 800.

  1. Step 50

    50

    #F5F5F9

    oklch(97.1% 0.005 286.3)

  2. Step 100

    100

    #E8E9F2

    oklch(93.6% 0.012 281.1)

  3. Step 200

    200

    #D7D8E8

    oklch(88.6% 0.022 283.1)

  4. Step 300

    300

    #BCBEDB

    oklch(80.9% 0.041 282.3)

  5. Step 400

    400

    #9A9CC9

    oklch(70.7% 0.066 282.6)

  6. Step 500

    500

    #8283BB

    oklch(63.1% 0.084 282.9)

  7. Step 600

    600

    #6C6CA7

    oklch(55.6% 0.091 283)

  8. Step 700

    700

    #5A5A8F

    oklch(49.1% 0.084 282.9)

  9. Step 800

    800 (this color)

    #51517C

    oklch(45.4% 0.07 283.3)

  10. Step 900

    900

    #3E3E5E

    oklch(37.8% 0.054 283.5)

  11. Step 950

    950

    #242437

    oklch(26.9% 0.035 283.8)

Export this scale for Tailwind in the Tailwind colors tool

#51517C 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)#44567E0.022
Deuteranopia (no green cones)#42547B0.023
Tritanopia (no blue cones)#4659610.060
Achromatopsia (no color)#5555550.070

Harmonies

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

Complementary

The opposite hue (180°).

  • #51517C

    #51517C

    oklch(45.4% 0.07 283.3)

  • #5D5827

    #5D5827

    oklch(45.4% 0.069 103.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #51517C

    #51517C

    oklch(45.4% 0.07 283.3)

  • #3A587C

    #3A587C

    oklch(45.3% 0.069 253.7)

  • #644B72

    #644B72

    oklch(45.5% 0.069 313)

Open the analogous palette in the generator

Split complementary

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

  • #51517C

    #51517C

    oklch(45.4% 0.07 283.3)

  • #6E5027

    #6E5027

    oklch(45.4% 0.07 73)

  • #475F36

    #475F36

    oklch(45.5% 0.069 133.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #51517C

    #51517C

    oklch(45.4% 0.07 283.3)

  • #774936

    #774936

    oklch(45.4% 0.07 43.1)

  • #2D624B

    #2D624B

    oklch(45.3% 0.069 163.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #51517C

    #51517C

    oklch(45.4% 0.07 283.3)

  • #78464B

    #78464B

    oklch(45.5% 0.069 13.7)

  • #5D5827

    #5D5827

    oklch(45.4% 0.069 103.5)

  • #186261

    #186261

    oklch(45.3% 0.069 193.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #51517C 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.