#512D6B

Closest named color: Dark Slate Blue (#483D8B). oklch(37.3% 0.108 308.9), rgb(81, 45, 107).

Aa

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

About this color

#512D6B is a dark, moderately saturated purple. In OKLCH its lightness is 37%, its chroma 0.108 and its hue 309°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Slate Blue (#483D8B), ΔE 0.064 away. White text reads best on it, at 10.83:1.

Hue familyPurples
Lightnessdark (37%)
Chromamoderately saturated (0.108)
Temperaturein between
Nearest nameDark Slate Blue (#483D8B)
Black text1.93:1
White text10.83:1

Values

HEX#512D6B
RGBrgb(81, 45, 107)
HSLhsl(275, 41%, 30%)
OKLCHoklch(37.3% 0.108 308.9)

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 #512D6B 10.83:1 AAA Lc -98.7 Preferred for body text
Black text on #512D6B 1.93:1 Fails Lc 9.1 Not readable
#512D6B text on white 10.83:1 AAA Lc 94.8 Preferred for body text
#512D6B text on black 1.93:1 Fails Lc -7.8 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

    #F7F4FB

    oklch(97.1% 0.01 305.4)

  2. Step 100

    100

    #EEE6F6

    oklch(93.6% 0.023 308.2)

  3. Step 200

    200

    #E2D2F0

    oklch(88.6% 0.044 309.3)

  4. Step 300

    300

    #D0B3E9

    oklch(81% 0.081 309)

  5. Step 400

    400

    #B889DE

    oklch(70.7% 0.13 308.8)

  6. Step 500

    500

    #A669D4

    oklch(63.1% 0.165 308.7)

  7. Step 600

    600

    #924DC1

    oklch(55.6% 0.18 309.1)

  8. Step 700

    700

    #7C3DA7

    oklch(49% 0.168 308.9)

  9. Step 800

    800

    #653487

    oklch(42.8% 0.138 309)

  10. Step 900

    900 (this color)

    #512D6B

    oklch(37.3% 0.108 308.9)

  11. Step 950

    950

    #301C3F

    oklch(27% 0.067 309)

Export this scale for Tailwind in the Tailwind colors tool

#512D6B 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)#1A3C6D0.089
Deuteranopia (no green cones)#263E690.080
Tritanopia (no blue cones)#4D38470.076
Achromatopsia (no color)#3D3D3D0.109

Harmonies

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

Complementary

The opposite hue (180°).

  • #512D6B

    #512D6B

    oklch(37.3% 0.108 308.9)

  • #304A00

    #304A00

    oklch(37.4% 0.099 128.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #512D6B

    #512D6B

    oklch(37.3% 0.108 308.9)

  • #363778

    #363778

    oklch(37.3% 0.108 279.1)

  • #632553

    #632553

    oklch(37.2% 0.108 338.8)

Open the analogous palette in the generator

Split complementary

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

  • #512D6B

    #512D6B

    oklch(37.3% 0.108 308.9)

  • #4B4100

    #4B4100

    oklch(37.4% 0.078 99.4)

  • #004E2F

    #004E2F

    oklch(37.4% 0.086 158.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #512D6B

    #512D6B

    oklch(37.3% 0.108 308.9)

  • #5C3700

    #5C3700

    oklch(37.3% 0.082 68.7)

  • #004B47

    #004B47

    oklch(37.2% 0.065 188.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #512D6B

    #512D6B

    oklch(37.3% 0.108 308.9)

  • #6E260C

    #6E260C

    oklch(37.3% 0.109 38.5)

  • #304A00

    #304A00

    oklch(37.4% 0.099 128.9)

  • #004959

    #004959

    oklch(37.5% 0.068 218.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #512D6B 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.