#5A271F

Closest named color: Reddy Brown (#6E1005). oklch(34.3% 0.077 30.6), rgb(90, 39, 31).

Aa

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

About this color

#5A271F is a dark, moderately saturated red. In OKLCH its lightness is 34%, its chroma 0.077 and its hue 31°. Its hue sits on the warm side of the wheel. The nearest named color is Reddy Brown (#6E1005), ΔE 0.052 away. White text reads best on it, at 12.03:1.

Hue familyReds
Lightnessdark (34%)
Chromamoderately saturated (0.077)
Temperaturewarm
Nearest nameReddy Brown (#6E1005)
Black text1.74:1
White text12.03:1

Values

HEX#5A271F
RGBrgb(90, 39, 31)
HSLhsl(8, 49%, 24%)
OKLCHoklch(34.3% 0.077 30.6)

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 #5A271F 12.03:1 AAA Lc -100.7 Preferred for body text
Black text on #5A271F 1.74:1 Fails Lc 0.0 Not readable
#5A271F text on white 12.03:1 AAA Lc 97.1 Preferred for body text
#5A271F text on black 1.74: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

    #FBF4F2

    oklch(97.2% 0.008 36.6)

  2. Step 100

    100

    #F5E6E3

    oklch(93.6% 0.017 31.1)

  3. Step 200

    200

    #EED2CD

    oklch(88.6% 0.032 29.8)

  4. Step 300

    300

    #E4B3AA

    oklch(80.9% 0.059 30.4)

  5. Step 400

    400

    #D48B7E

    oklch(70.8% 0.092 30.6)

  6. Step 500

    500

    #C76C5D

    oklch(63.2% 0.119 30.5)

  7. Step 600

    600

    #B25243

    oklch(55.6% 0.128 30.7)

  8. Step 700

    700

    #994235

    oklch(49.2% 0.12 30.5)

  9. Step 800

    800

    #7C372C

    oklch(42.7% 0.099 30.8)

  10. Step 900

    900 (this color)

    #5A271F

    oklch(34.3% 0.077 30.6)

  11. Step 950

    950

    #3B1D18

    oklch(27.1% 0.048 30.5)

Export this scale for Tailwind in the Tailwind colors tool

#5A271F 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)#34301E0.079
Deuteranopia (no green cones)#403A1E0.072
Tritanopia (no blue cones)#631E250.029
Achromatopsia (no color)#3636360.078

Harmonies

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

Complementary

The opposite hue (180°).

  • #5A271F

    #5A271F

    oklch(34.3% 0.077 30.6)

  • #00414A

    #00414A

    oklch(34.4% 0.06 210.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5A271F

    #5A271F

    oklch(34.3% 0.077 30.6)

  • #582536

    #582536

    oklch(34.2% 0.078 1)

  • #552D03

    #552D03

    oklch(34.2% 0.078 59.9)

Open the analogous palette in the generator

Split complementary

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

  • #5A271F

    #5A271F

    oklch(34.3% 0.077 30.6)

  • #00433A

    #00433A

    oklch(34.3% 0.062 180.2)

  • #033D5C

    #033D5C

    oklch(34.3% 0.076 239.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5A271F

    #5A271F

    oklch(34.3% 0.077 30.6)

  • #134322

    #134322

    oklch(34.1% 0.077 150.4)

  • #2A3560

    #2A3560

    oklch(34.2% 0.077 271.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5A271F

    #5A271F

    oklch(34.3% 0.077 30.6)

  • #333E06

    #333E06

    oklch(34.2% 0.077 120.7)

  • #00414A

    #00414A

    oklch(34.4% 0.06 210.2)

  • #3F2E5A

    #3F2E5A

    oklch(34.2% 0.077 300.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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