#5A882D#5A882D

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

Color values

HEX#5A882D
RGBrgb(90, 136, 45)
HSLhsl(90, 50%, 35%)
HSVhsv(90, 67%, 53%)
CMYKcmyk(33.8%, 0%, 66.9%, 46.7%)
CIE-LABlab(51.80, -31.42, 42.41)
CIE-LCHlch(51.80, 52.78, 126.53°)
OKLaboklab(57.39% -0.0882 0.0973)
OKLCHoklch(57.39% 0.131 132.2)
XYZxyz(13.4941, 19.9709, 5.6259)
Luminance0.1997 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A882D #5B2D88
analogous
#87882D #5A882D #2D882E
triadic
#5A882D #2D5A88 #882D5A
tetradic
#5A882D #2D8788 #5B2D88 #882E2D
square
#5A882D #2D8788 #5B2D88 #882E2D
split-complementary
#5A882D #2E2D88 #882D87
monochromatic
#1D2C0F #3C5A1E #5A882D #78B63C #97CC64

Accessibility & contrast

On white

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

On black

4.99
#5A882D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A882D
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A882D#FFFFFF#000000##000000
##5A882D1.004.204.994.99
#FFFFFF4.201.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E21
Deuteranopia (green-blind)
#877A34
Tritanopia (blue-blind)
#5B8275
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5a882d;
/* rgb */ color: rgb(90, 136, 45);
/* oklch */ color: oklch(57.4% 0.131 132.2);
Tailwind
colors: {
  custom: {
    50: '#8cab6b',
    500: '#5a882d',
    950: '#000000',
  },
}
SCSS
$custom: #5a882d;
$custom-light: #8cab6b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a882d",
  "rgb": {
    "r": 90,
    "g": 136,
    "b": 45
  },
  "hsl": {
    "h": 90.33,
    "s": 50.276,
    "l": 35.49
  },
  "oklch": {
    "l": 0.57388,
    "c": 0.13127,
    "h": 132.2
  },
  "luminance": 0.19971
}

Semantic roles & 50–950 ramp

primary
#5A882D
secondary
#895FB2
accent
#4EDA95
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #5A882D

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

Preview Lab → · Contrast checker → · Palette generator →

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