#512B2A

Closest named color: Onyx (#343A40). oklch(33.8% 0.057 22.1), rgb(81, 43, 42).

Aa

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

About this color

#512B2A is a dark, muted red. In OKLCH its lightness is 34%, its chroma 0.057 and its hue 22°. Its hue sits on the warm side of the wheel. The nearest named color is Onyx (#343A40), ΔE 0.067 away. White text reads best on it, at 12.14:1.

Hue familyReds
Lightnessdark (34%)
Chromamuted (0.057)
Temperaturewarm
Nearest nameOnyx (#343A40)
Black text1.72:1
White text12.14:1

Values

HEX#512B2A
RGBrgb(81, 43, 42)
HSLhsl(2, 32%, 24%)
OKLCHoklch(33.8% 0.057 22.1)

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 #512B2A 12.14:1 AAA Lc -101.1 Preferred for body text
Black text on #512B2A 1.72:1 Fails Lc 0.0 Not readable
#512B2A text on white 12.14:1 AAA Lc 97.5 Preferred for body text
#512B2A 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

    #F9F4F4

    oklch(97.1% 0.005 17.2)

  2. Step 100

    100

    #F2E7E6

    oklch(93.6% 0.012 23.7)

  3. Step 200

    200

    #E8D3D2

    oklch(88.4% 0.023 20.9)

  4. Step 300

    300

    #DBB6B4

    oklch(80.8% 0.043 21.7)

  5. Step 400

    400

    #C8908D

    oklch(70.7% 0.069 22.4)

  6. Step 500

    500

    #B87472

    oklch(63.1% 0.086 21.6)

  7. Step 600

    600

    #A35C5A

    oklch(55.6% 0.093 22.2)

  8. Step 700

    700

    #8C4B4A

    oklch(49.1% 0.088 21.7)

  9. Step 800

    800

    #723E3D

    oklch(42.8% 0.073 21.7)

  10. Step 900

    900 (this color)

    #512B2A

    oklch(33.8% 0.057 22.1)

  11. Step 950

    950

    #361F1E

    oklch(26.9% 0.036 22.5)

Export this scale for Tailwind in the Tailwind colors tool

#512B2A 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)#33312A0.060
Deuteranopia (no green cones)#3C39290.057
Tritanopia (no blue cones)#58262B0.019
Achromatopsia (no color)#3636360.057

Harmonies

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

Complementary

The opposite hue (180°).

  • #512B2A

    #512B2A

    oklch(33.8% 0.057 22.1)

  • #024044

    #024044

    oklch(33.9% 0.057 202)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #512B2A

    #512B2A

    oklch(33.8% 0.057 22.1)

  • #4E2B3A

    #4E2B3A

    oklch(33.9% 0.056 353.3)

  • #4E2F1A

    #4E2F1A

    oklch(33.8% 0.056 53.8)

Open the analogous palette in the generator

Split complementary

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

  • #512B2A

    #512B2A

    oklch(33.8% 0.057 22.1)

  • #104134

    #104134

    oklch(33.9% 0.057 171.7)

  • #133C50

    #133C50

    oklch(33.8% 0.057 233.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #512B2A

    #512B2A

    oklch(33.8% 0.057 22.1)

  • #263F23

    #263F23

    oklch(33.9% 0.057 141.8)

  • #273755

    #273755

    oklch(33.8% 0.057 262.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #512B2A

    #512B2A

    oklch(33.8% 0.057 22.1)

  • #383A15

    #383A15

    oklch(33.7% 0.056 111.9)

  • #024044

    #024044

    oklch(33.9% 0.057 202)

  • #383252

    #383252

    oklch(33.8% 0.056 291.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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