#512145

Closest named color: Grape Purple (#5D1451). oklch(33.1% 0.087 338), rgb(81, 33, 69).

Aa

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

About this color

#512145 is a dark, moderately saturated purple. In OKLCH its lightness is 33%, its chroma 0.087 and its hue 338°. Its hue sits on the warm side of the wheel. The nearest named color is Grape Purple (#5D1451), ΔE 0.041 away. White text reads best on it, at 12.70:1.

Hue familyPurples
Lightnessdark (33%)
Chromamoderately saturated (0.087)
Temperaturewarm
Nearest nameGrape Purple (#5D1451)
Black text1.65:1
White text12.70:1

Values

HEX#512145
RGBrgb(81, 33, 69)
HSLhsl(315, 42%, 22%)
OKLCHoklch(33.1% 0.087 338)

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 #512145 12.70:1 AAA Lc -101.8 Preferred for body text
Black text on #512145 1.65:1 Fails Lc 0.0 Not readable
#512145 text on white 12.70:1 AAA Lc 98.4 Preferred for body text
#512145 text on black 1.65: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

    #FAF3F7

    oklch(97.1% 0.009 341.8)

  2. Step 100

    100

    #F3E5EE

    oklch(93.6% 0.019 338.7)

  3. Step 200

    200

    #EAD0E2

    oklch(88.4% 0.037 337)

  4. Step 300

    300

    #DEB1CF

    oklch(81% 0.065 338.8)

  5. Step 400

    400

    #CB87B7

    oklch(70.7% 0.104 338.2)

  6. Step 500

    500

    #BC67A5

    oklch(63.1% 0.133 338.1)

  7. Step 600

    600

    #A74C91

    oklch(55.5% 0.146 337.6)

  8. Step 700

    700

    #8F3D7B

    oklch(49.1% 0.135 337.9)

  9. Step 800

    800

    #743364

    oklch(42.7% 0.111 337.8)

  10. Step 900

    900 (this color)

    #512145

    oklch(33.1% 0.087 338)

  11. Step 950

    950

    #371B30

    oklch(27% 0.055 337)

Export this scale for Tailwind in the Tailwind colors tool

#512145 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)#222E460.092
Deuteranopia (no green cones)#3035440.081
Tritanopia (no blue cones)#5523300.041
Achromatopsia (no color)#3333330.088

Harmonies

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

Complementary

The opposite hue (180°).

  • #512145

    #512145

    oklch(33.1% 0.087 338)

  • #004126

    #004126

    oklch(33.1% 0.077 158.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #512145

    #512145

    oklch(33.1% 0.087 338)

  • #422758

    #422758

    oklch(33.1% 0.088 307.7)

  • #591E2D

    #591E2D

    oklch(33% 0.088 7.6)

Open the analogous palette in the generator

Split complementary

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

  • #512145

    #512145

    oklch(33.1% 0.087 338)

  • #283D00

    #283D00

    oklch(33% 0.086 128.1)

  • #003F3B

    #003F3B

    oklch(33.1% 0.058 187.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #512145

    #512145

    oklch(33.1% 0.087 338)

  • #3F3500

    #3F3500

    oklch(33% 0.068 97.5)

  • #003D4A

    #003D4A

    oklch(33.2% 0.06 217.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #512145

    #512145

    oklch(33.1% 0.087 338)

  • #4E2D00

    #4E2D00

    oklch(33.1% 0.073 67.3)

  • #004126

    #004126

    oklch(33.1% 0.077 158.3)

  • #023860

    #023860

    oklch(33.2% 0.087 247.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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