#5A881D#5A881D

#5A881D is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 57.3% C 0.142 H 130.6°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#5A881D
RGBrgb(90, 136, 29)
HSLhsl(86, 65%, 32%)
HSVhsv(86, 79%, 53%)
CMYKcmyk(33.8%, 0%, 78.7%, 46.7%)
CIE-LABlab(51.69, -32.56, 48.60)
CIE-LCHlch(51.69, 58.50, 123.82°)
OKLaboklab(57.26% -0.0926 0.1078)
OKLCHoklch(57.26% 0.142 130.6)
XYZxyz(13.2423, 19.8702, 4.2998)
Luminance0.1987 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A881D #4B1D88
analogous
#88801D #5A881D #25881D
triadic
#5A881D #1D5A88 #881D5A
tetradic
#5A881D #1D8880 #4B1D88 #881D25
square
#5A881D #1D8880 #4B1D88 #881D25
split-complementary
#5A881D #1D2588 #801D88
monochromatic
#172307 #395612 #5A881D #7BBA28 #9AD848

Accessibility & contrast

On white

4.22
#5A881D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#5A881D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A881D
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A881D#FFFFFF#000000##000000
##5A881D1.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D02
Deuteranopia (green-blind)
#887A28
Tritanopia (blue-blind)
#5C8274
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5a881d;
/* rgb */ color: rgb(90, 136, 29);
/* oklch */ color: oklch(57.3% 0.142 130.6);
Tailwind
colors: {
  custom: {
    50: '#8dab62',
    500: '#5a881d',
    950: '#000000',
  },
}
SCSS
$custom: #5a881d;
$custom-light: #8dab62;
$custom-dark: #000000;
JSON
{
  "hex": "#5a881d",
  "rgb": {
    "r": 90,
    "g": 136,
    "b": 29
  },
  "hsl": {
    "h": 85.794,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.57258,
    "c": 0.14211,
    "h": 130.6
  },
  "luminance": 0.19871
}

Semantic roles & 50–950 ramp

primary
#5A881D
secondary
#7847BA
accent
#40E888
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1005
muted
#7D7F7A

Preview Lab

Preview with #5A881D

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#5A881D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva