#5A882F#5A882F

#5A882F is a mid, vivid yellow-green. Relative luminance 0.200; OKLCH L 57.4% C 0.130 H 132.4°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#5A882F
RGBrgb(90, 136, 47)
HSLhsl(91, 49%, 36%)
HSVhsv(91, 65%, 53%)
CMYKcmyk(33.8%, 0%, 65.4%, 46.7%)
CIE-LABlab(51.82, -31.24, 41.54)
CIE-LCHlch(51.82, 51.98, 126.95°)
OKLaboklab(57.41% -0.0875 0.0957)
OKLCHoklch(57.41% 0.13 132.4)
XYZxyz(13.5335, 19.9867, 5.8335)
Luminance0.1999 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A882F #5D2F88
analogous
#86882F #5A882F #2F8830
triadic
#5A882F #2F5A88 #882F5A
tetradic
#5A882F #2F8688 #5D2F88 #88302F
square
#5A882F #2F8688 #5D2F88 #88302F
split-complementary
#5A882F #302F88 #882F86
monochromatic
#1E2D10 #3C5B1F #5A882F #78B53F #97CA67

Accessibility & contrast

On white

4.20
#5A882F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#5A882F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A882F
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A882F#FFFFFF#000000##000000
##5A882F1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E24
Deuteranopia (green-blind)
#877A36
Tritanopia (blue-blind)
#5B8375
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5a882f;
/* rgb */ color: rgb(90, 136, 47);
/* oklch */ color: oklch(57.4% 0.130 132.4);
Tailwind
colors: {
  custom: {
    50: '#8cab6c',
    500: '#5a882f',
    950: '#000000',
  },
}
SCSS
$custom: #5a882f;
$custom-light: #8cab6c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a882f",
  "rgb": {
    "r": 90,
    "g": 136,
    "b": 47
  },
  "hsl": {
    "h": 91.011,
    "s": 48.634,
    "l": 35.882
  },
  "oklch": {
    "l": 0.57408,
    "c": 0.12966,
    "h": 132.4
  },
  "luminance": 0.19987
}

Semantic roles & 50–950 ramp

primary
#5A882F
secondary
#8B61B1
accent
#50D896
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #5A882F

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

Preview Lab → · Contrast checker → · Palette generator →

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