#5A540F

Closest named color: Olive Brown (#645403). oklch(43.8% 0.086 104.2), rgb(90, 84, 15).

Aa

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

About this color

#5A540F is a dark, moderately saturated brown. In OKLCH its lightness is 44%, its chroma 0.086 and its hue 104°. Its hue sits on the warm side of the wheel. The nearest named color is Olive Brown (#645403), ΔE 0.017 away. White text reads best on it, at 7.74:1.

Hue familyBrowns
Lightnessdark (44%)
Chromamoderately saturated (0.086)
Temperaturewarm
Nearest nameOlive Brown (#645403)
Black text2.70:1
White text7.74:1

Values

HEX#5A540F
RGBrgb(90, 84, 15)
HSLhsl(55, 71%, 21%)
OKLCHoklch(43.8% 0.086 104.2)

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 #5A540F 7.74:1 AAA Lc -91.6 Preferred for body text
Black text on #5A540F 2.70:1 Fails Lc 17.2 Dividers and decoration only
#5A540F text on white 7.74:1 AAA Lc 86.8 Fine for body text
#5A540F text on black 2.70:1 Fails Lc -15.3 Dividers and decoration only

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 800.

  1. Step 50

    50

    #F6F6F1

    oklch(97.2% 0.007 106.5)

  2. Step 100

    100

    #EBEAE0

    oklch(93.5% 0.013 102)

  3. Step 200

    200

    #DCDAC6

    oklch(88.5% 0.027 102.3)

  4. Step 300

    300

    #C5C39E

    oklch(80.9% 0.05 104.9)

  5. Step 400

    400

    #A8A368

    oklch(70.6% 0.079 104.1)

  6. Step 500

    500

    #948C3C

    oklch(63% 0.102 103.6)

  7. Step 600

    600

    #7E7614

    oklch(55.6% 0.111 104.4)

  8. Step 700

    700

    #6B6301

    oklch(49.2% 0.103 104)

  9. Step 800

    800 (this color)

    #5A540F

    oklch(43.8% 0.086 104.2)

  10. Step 900

    900

    #474313

    oklch(37.6% 0.067 104.5)

  11. Step 950

    950

    #2A270D

    oklch(26.9% 0.042 102.8)

Export this scale for Tailwind in the Tailwind colors tool

#5A540F 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)#5C51010.009
Deuteranopia (no green cones)#5E54140.008
Tritanopia (no blue cones)#614E470.077
Achromatopsia (no color)#5353530.086

Harmonies

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

Complementary

The opposite hue (180°).

  • #5A540F

    #5A540F

    oklch(43.8% 0.086 104.2)

  • #4D4B7F

    #4D4B7F

    oklch(43.9% 0.084 284.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5A540F

    #5A540F

    oklch(43.8% 0.086 104.2)

  • #6E4A0F

    #6E4A0F

    oklch(43.9% 0.086 74)

  • #3E5C29

    #3E5C29

    oklch(43.8% 0.085 133.9)

Open the analogous palette in the generator

Split complementary

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

  • #5A540F

    #5A540F

    oklch(43.8% 0.086 104.2)

  • #2F5480

    #2F5480

    oklch(44% 0.085 253.8)

  • #634373

    #634373

    oklch(43.9% 0.085 313.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5A540F

    #5A540F

    oklch(43.8% 0.086 104.2)

  • #005B74

    #005B74

    oklch(43.8% 0.083 224.7)

  • #733E5D

    #733E5D

    oklch(44% 0.085 345.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5A540F

    #5A540F

    oklch(43.8% 0.086 104.2)

  • #005F5E

    #005F5E

    oklch(43.9% 0.075 193.5)

  • #4D4B7F

    #4D4B7F

    oklch(43.9% 0.084 284.1)

  • #7A3D43

    #7A3D43

    oklch(43.9% 0.085 15)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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