#512840

Closest named color: Grape Purple (#5D1451). oklch(34% 0.07 345.3), rgb(81, 40, 64).

Aa

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

About this color

#512840 is a dark, muted red. In OKLCH its lightness is 34%, its chroma 0.070 and its hue 345°. Its hue sits on the warm side of the wheel. The nearest named color is Grape Purple (#5D1451), ΔE 0.059 away. White text reads best on it, at 12.15:1.

Hue familyReds
Lightnessdark (34%)
Chromamuted (0.070)
Temperaturewarm
Nearest nameGrape Purple (#5D1451)
Black text1.72:1
White text12.15:1

Values

HEX#512840
RGBrgb(81, 40, 64)
HSLhsl(325, 34%, 24%)
OKLCHoklch(34% 0.07 345.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 #512840 12.15:1 AAA Lc -101.1 Preferred for body text
Black text on #512840 1.72:1 Fails Lc 0.0 Not readable
#512840 text on white 12.15:1 AAA Lc 97.5 Preferred for body text
#512840 text on black 1.72: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

    #F9F4F6

    oklch(97.2% 0.006 350.8)

  2. Step 100

    100

    #F2E6EC

    oklch(93.6% 0.015 345.6)

  3. Step 200

    200

    #E8D2DD

    oklch(88.5% 0.028 346)

  4. Step 300

    300

    #DAB4C8

    oklch(80.9% 0.051 345.3)

  5. Step 400

    400

    #C78CAC

    oklch(70.8% 0.083 345.7)

  6. Step 500

    500

    #B76E98

    oklch(63.1% 0.107 345.1)

  7. Step 600

    600

    #A25582

    oklch(55.6% 0.116 345.5)

  8. Step 700

    700

    #8B456E

    oklch(49.1% 0.108 345.7)

  9. Step 800

    800

    #71395A

    oklch(42.7% 0.09 345.2)

  10. Step 900

    900 (this color)

    #512840

    oklch(34% 0.07 345.3)

  11. Step 950

    950

    #361D2B

    oklch(27% 0.045 345.9)

Export this scale for Tailwind in the Tailwind colors tool

#512840 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)#2B31410.074
Deuteranopia (no green cones)#36383F0.067
Tritanopia (no blue cones)#5628310.028
Achromatopsia (no color)#3636360.070

Harmonies

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

Complementary

The opposite hue (180°).

  • #512840

    #512840

    oklch(34% 0.07 345.3)

  • #03432F

    #03432F

    oklch(34% 0.07 165.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #512840

    #512840

    oklch(34% 0.07 345.3)

  • #462C50

    #462C50

    oklch(34.1% 0.069 316.2)

  • #56272C

    #56272C

    oklch(33.9% 0.07 14.9)

Open the analogous palette in the generator

Split complementary

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

  • #512840

    #512840

    oklch(34% 0.07 345.3)

  • #274019

    #274019

    oklch(34.1% 0.07 135.6)

  • #004141

    #004141

    oklch(34% 0.058 194.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #512840

    #512840

    oklch(34% 0.07 345.3)

  • #3D3A03

    #3D3A03

    oklch(34.1% 0.07 106.2)

  • #003E51

    #003E51

    oklch(33.9% 0.065 225.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #512840

    #512840

    oklch(34% 0.07 345.3)

  • #4D3203

    #4D3203

    oklch(34.1% 0.07 74.8)

  • #03432F

    #03432F

    oklch(34% 0.07 165.3)

  • #1E395B

    #1E395B

    oklch(34.1% 0.069 255)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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