#512F8F

Closest named color: Dark Slate Blue (#483D8B). oklch(40.3% 0.151 295), rgb(81, 47, 143).

Aa

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

About this color

#512F8F is a dark, vivid purple. In OKLCH its lightness is 40%, its chroma 0.151 and its hue 295°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Slate Blue (#483D8B), ΔE 0.035 away. White text reads best on it, at 9.75:1.

Hue familyPurples
Lightnessdark (40%)
Chromavivid (0.151)
Temperaturein between
Nearest nameDark Slate Blue (#483D8B)
Black text2.15:1
White text9.75:1

Values

HEX#512F8F
RGBrgb(81, 47, 143)
HSLhsl(261, 51%, 37%)
OKLCHoklch(40.3% 0.151 295)

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 #512F8F 9.75:1 AAA Lc -96.3 Preferred for body text
Black text on #512F8F 2.15:1 Fails Lc 11.8 Not readable
#512F8F text on white 9.75:1 AAA Lc 92.1 Preferred for body text
#512F8F text on black 2.15:1 Fails Lc -10.3 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 800.

  1. Step 50

    50

    #F6F4FD

    oklch(97.1% 0.012 296.4)

  2. Step 100

    100

    #EBE7FA

    oklch(93.7% 0.026 295.5)

  3. Step 200

    200

    #DBD3F7

    oklch(88.5% 0.05 295.5)

  4. Step 300

    300

    #C4B6F4

    oklch(80.9% 0.088 294.7)

  5. Step 400

    400

    #A78DEE

    oklch(70.6% 0.14 294.9)

  6. Step 500

    500

    #936DE9

    oklch(63% 0.18 294.8)

  7. Step 600

    600

    #7F51D7

    oklch(55.6% 0.196 295)

  8. Step 700

    700

    #6C41BA

    oklch(49.2% 0.181 295.3)

  9. Step 800

    800 (this color)

    #512F8F

    oklch(40.3% 0.151 295)

  10. Step 900

    900

    #483078

    oklch(37.7% 0.118 295.5)

  11. Step 950

    950

    #2A1D46

    oklch(27% 0.074 295.6)

Export this scale for Tailwind in the Tailwind colors tool

#512F8F 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)#0045920.096
Deuteranopia (no green cones)#00428D0.096
Tritanopia (no blue cones)#40465B0.118
Achromatopsia (no color)#4444440.151

Harmonies

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

Complementary

The opposite hue (180°).

  • #512F8F

    #512F8F

    oklch(40.3% 0.151 295)

  • #474E00

    #474E00

    oklch(40.4% 0.092 115.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #512F8F

    #512F8F

    oklch(40.3% 0.151 295)

  • #1F3F98

    #1F3F98

    oklch(40.2% 0.151 265.1)

  • #6E2074

    #6E2074

    oklch(40.2% 0.151 324.9)

Open the analogous palette in the generator

Split complementary

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

  • #512F8F

    #512F8F

    oklch(40.3% 0.151 295)

  • #5D4400

    #5D4400

    oklch(40.3% 0.083 84.7)

  • #005913

    #005913

    oklch(40.3% 0.127 144.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #512F8F

    #512F8F

    oklch(40.3% 0.151 295)

  • #703700

    #703700

    oklch(40.3% 0.1 55.3)

  • #005546

    #005546

    oklch(40.1% 0.075 175.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #512F8F

    #512F8F

    oklch(40.3% 0.151 295)

  • #871219

    #871219

    oklch(40.2% 0.15 25)

  • #474E00

    #474E00

    oklch(40.4% 0.092 115.5)

  • #00535A

    #00535A

    oklch(40.3% 0.069 204.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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