#5A842E

Closest named color: Swamp (#698339). oklch(56.4% 0.125 131.5), rgb(90, 132, 46).

Aa

Black text reads best on this color (4.77:1).

About this color

#5A842E is a medium-dark, moderately saturated green. In OKLCH its lightness is 56%, its chroma 0.125 and its hue 131°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Swamp (#698339), ΔE 0.024 away. Black text reads best on it, at 4.77:1.

Hue familyGreens
Lightnessmedium-dark (56%)
Chromamoderately saturated (0.125)
Temperaturein between
Nearest nameSwamp (#698339)
Black text4.77:1
White text4.39:1

Values

HEX#5A842E
RGBrgb(90, 132, 46)
HSLhsl(89, 48%, 35%)
OKLCHoklch(56.4% 0.125 131.5)

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 #5A842E 4.39:1 AA large text Lc -75.8 Fine for body text
Black text on #5A842E 4.77:1 AA Lc 33.7 Non-text elements, placeholder text
#5A842E text on white 4.39:1 AA large text Lc 70.4 Content text, not long reading
#5A842E text on black 4.77:1 AA Lc -31.3 Non-text elements, placeholder text

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

  1. Step 50

    50

    #F4F7F1

    oklch(97.2% 0.009 128.6)

  2. Step 100

    100

    #E6ECE1

    oklch(93.5% 0.016 130.4)

  3. Step 200

    200

    #D2DEC9

    oklch(88.6% 0.031 131.6)

  4. Step 300

    300

    #B4C9A3

    oklch(81% 0.057 131.2)

  5. Step 400

    400

    #8CAD71

    oklch(70.8% 0.091 131.8)

  6. Step 500

    500

    #70984B

    oklch(63.2% 0.115 131.6)

  7. Step 600

    600 (this color)

    #5A842E

    oklch(56.4% 0.125 131.5)

  8. Step 700

    700

    #486E1E

    oklch(49.2% 0.116 131.5)

  9. Step 800

    800

    #3B591B

    oklch(42.6% 0.096 131.4)

  10. Step 900

    900

    #334A1D

    oklch(37.8% 0.075 131.6)

  11. Step 950

    950

    #1E2B12

    oklch(27% 0.047 131.4)

Export this scale for Tailwind in the Tailwind colors tool

#5A842E 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)#8A7A240.070
Deuteranopia (no green cones)#8477350.070
Tritanopia (no blue cones)#5B7F720.094
Achromatopsia (no color)#7878780.125

Harmonies

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

Complementary

The opposite hue (180°).

  • #5A842E

    #5A842E

    oklch(56.4% 0.125 131.5)

  • #8D5EAB

    #8D5EAB

    oklch(56.3% 0.125 311.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5A842E

    #5A842E

    oklch(56.4% 0.125 131.5)

  • #847700

    #847700

    oklch(56.4% 0.118 101.8)

  • #008B5E

    #008B5E

    oklch(56.3% 0.124 161.8)

Open the analogous palette in the generator

Split complementary

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

  • #5A842E

    #5A842E

    oklch(56.4% 0.125 131.5)

  • #6A6ABC

    #6A6ABC

    oklch(56.2% 0.125 281.6)

  • #A6558B

    #A6558B

    oklch(56.4% 0.126 341.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5A842E

    #5A842E

    oklch(56.4% 0.125 131.5)

  • #3678BC

    #3678BC

    oklch(56.3% 0.125 251.6)

  • #B25263

    #B25263

    oklch(56.3% 0.126 11)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5A842E

    #5A842E

    oklch(56.4% 0.125 131.5)

  • #0083A1

    #0083A1

    oklch(56.5% 0.104 221.4)

  • #8D5EAB

    #8D5EAB

    oklch(56.3% 0.125 311.1)

  • #B15936

    #B15936

    oklch(56.4% 0.125 41.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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