#512D5B

Closest named color: Grape Purple (#5D1451). oklch(36.3% 0.088 318.6), rgb(81, 45, 91).

Aa

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

About this color

#512D5B is a dark, moderately saturated purple. In OKLCH its lightness is 36%, its chroma 0.088 and its hue 319°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Grape Purple (#5D1451), ΔE 0.054 away. White text reads best on it, at 11.19:1.

Hue familyPurples
Lightnessdark (36%)
Chromamoderately saturated (0.088)
Temperaturein between
Nearest nameGrape Purple (#5D1451)
Black text1.87:1
White text11.19:1

Values

HEX#512D5B
RGBrgb(81, 45, 91)
HSLhsl(287, 34%, 27%)
OKLCHoklch(36.3% 0.088 318.6)

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 #512D5B 11.19:1 AAA Lc -99.4 Preferred for body text
Black text on #512D5B 1.87:1 Fails Lc 8.3 Not readable
#512D5B text on white 11.19:1 AAA Lc 95.6 Preferred for body text
#512D5B text on black 1.87: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

    #F8F4F9

    oklch(97.2% 0.008 319.4)

  2. Step 100

    100

    #EFE6F2

    oklch(93.5% 0.019 317.7)

  3. Step 200

    200

    #E4D2E9

    oklch(88.5% 0.037 318.9)

  4. Step 300

    300

    #D3B4DC

    oklch(80.9% 0.065 318.6)

  5. Step 400

    400

    #BD8BCB

    oklch(70.7% 0.106 318.7)

  6. Step 500

    500

    #AB6DBD

    oklch(63.1% 0.134 318.4)

  7. Step 600

    600

    #9753A9

    oklch(55.6% 0.146 318.9)

  8. Step 700

    700

    #804391

    oklch(49% 0.136 318.5)

  9. Step 800

    800

    #683876

    oklch(42.7% 0.112 318.2)

  10. Step 900

    900 (this color)

    #512D5B

    oklch(36.3% 0.088 318.6)

  11. Step 950

    950

    #321D38

    oklch(27.1% 0.056 318.5)

Export this scale for Tailwind in the Tailwind colors tool

#512D5B 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)#25395D0.078
Deuteranopia (no green cones)#2F3C5A0.070
Tritanopia (no blue cones)#51333F0.057
Achromatopsia (no color)#3B3B3B0.088

Harmonies

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

Complementary

The opposite hue (180°).

  • #512D5B

    #512D5B

    oklch(36.3% 0.088 318.6)

  • #244817

    #244817

    oklch(36.2% 0.087 138.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #512D5B

    #512D5B

    oklch(36.3% 0.088 318.6)

  • #3D3569

    #3D3569

    oklch(36.4% 0.087 288.3)

  • #5E2845

    #5E2845

    oklch(36.2% 0.087 348.9)

Open the analogous palette in the generator

Split complementary

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

  • #512D5B

    #512D5B

    oklch(36.3% 0.088 318.6)

  • #424100

    #424100

    oklch(36.4% 0.079 108.8)

  • #004A37

    #004A37

    oklch(36.4% 0.073 168.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #512D5B

    #512D5B

    oklch(36.3% 0.088 318.6)

  • #533800

    #533800

    oklch(36.3% 0.075 78.5)

  • #00474A

    #00474A

    oklch(36.2% 0.061 199.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #512D5B

    #512D5B

    oklch(36.3% 0.088 318.6)

  • #612D0C

    #612D0C

    oklch(36.2% 0.087 48.7)

  • #244817

    #244817

    oklch(36.2% 0.087 138.3)

  • #00445B

    #00445B

    oklch(36.1% 0.071 228.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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