#5A2227

Closest named color: Claret (#680018). oklch(33.6% 0.083 17.3), rgb(90, 34, 39).

Aa

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

About this color

#5A2227 is a dark, moderately saturated red. In OKLCH its lightness is 34%, its chroma 0.083 and its hue 17°. Its hue sits on the warm side of the wheel. The nearest named color is Claret (#680018), ΔE 0.050 away. White text reads best on it, at 12.40:1.

Hue familyReds
Lightnessdark (34%)
Chromamoderately saturated (0.083)
Temperaturewarm
Nearest nameClaret (#680018)
Black text1.69:1
White text12.40:1

Values

HEX#5A2227
RGBrgb(90, 34, 39)
HSLhsl(355, 45%, 24%)
OKLCHoklch(33.6% 0.083 17.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 #5A2227 12.40:1 AAA Lc -101.2 Preferred for body text
Black text on #5A2227 1.69:1 Fails Lc 0.0 Not readable
#5A2227 text on white 12.40:1 AAA Lc 97.7 Preferred for body text
#5A2227 text on black 1.69: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

    #FBF3F3

    oklch(97% 0.009 17.3)

  2. Step 100

    100

    #F6E5E5

    oklch(93.5% 0.019 17.5)

  3. Step 200

    200

    #EFD1D1

    oklch(88.6% 0.034 17.8)

  4. Step 300

    300

    #E6B1B2

    oklch(80.9% 0.062 17.3)

  5. Step 400

    400

    #D7878A

    oklch(70.7% 0.098 17.4)

  6. Step 500

    500

    #CA676D

    oklch(63.1% 0.126 17.5)

  7. Step 600

    600

    #B64C55

    oklch(55.7% 0.138 17.6)

  8. Step 700

    700

    #9C3C45

    oklch(49.1% 0.128 17.6)

  9. Step 800

    800

    #7F3239

    oklch(42.7% 0.107 17.3)

  10. Step 900

    900 (this color)

    #5A2227

    oklch(33.6% 0.083 17.3)

  11. Step 950

    950

    #3C1B1D

    oklch(27% 0.052 17.3)

Export this scale for Tailwind in the Tailwind colors tool

#5A2227 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)#2F2D270.089
Deuteranopia (no green cones)#3D39260.084
Tritanopia (no blue cones)#6319240.023
Achromatopsia (no color)#3434340.083

Harmonies

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

Complementary

The opposite hue (180°).

  • #5A2227

    #5A2227

    oklch(33.6% 0.083 17.3)

  • #004041

    #004041

    oklch(33.7% 0.057 196.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5A2227

    #5A2227

    oklch(33.6% 0.083 17.3)

  • #54233F

    #54233F

    oklch(33.6% 0.082 347)

  • #58270A

    #58270A

    oklch(33.6% 0.082 47.2)

Open the analogous palette in the generator

Split complementary

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

  • #5A2227

    #5A2227

    oklch(33.6% 0.083 17.3)

  • #004230

    #004230

    oklch(33.7% 0.068 167.8)

  • #003D51

    #003D51

    oklch(33.6% 0.065 227.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5A2227

    #5A2227

    oklch(33.6% 0.083 17.3)

  • #204011

    #204011

    oklch(33.5% 0.083 137.2)

  • #193761

    #193761

    oklch(33.7% 0.082 257.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5A2227

    #5A2227

    oklch(33.6% 0.083 17.3)

  • #3B3900

    #3B3900

    oklch(33.6% 0.072 107.5)

  • #004041

    #004041

    oklch(33.7% 0.057 196.5)

  • #352F5F

    #352F5F

    oklch(33.7% 0.082 286.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #5A2227 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.