#5A8827#5A8827

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

Color values

HEX#5A8827
RGBrgb(90, 136, 39)
HSLhsl(88, 55%, 34%)
HSVhsv(88, 71%, 53%)
CMYKcmyk(33.8%, 0%, 71.3%, 46.7%)
CIE-LABlab(51.76, -31.91, 44.91)
CIE-LCHlch(51.76, 55.09, 125.39°)
OKLaboklab(57.33% -0.09 0.1017)
OKLCHoklch(57.33% 0.136 131.5)
XYZxyz(13.3867, 19.9280, 5.0602)
Luminance0.1993 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8827 #552788
analogous
#888627 #5A8827 #298827
triadic
#5A8827 #275A88 #88275A
tetradic
#5A8827 #278886 #552788 #882729
square
#5A8827 #278886 #552788 #882729
split-complementary
#5A8827 #272988 #862788
monochromatic
#1B290C #3B5819 #5A8827 #79B835 #98D05A

Accessibility & contrast

On white

4.21
#5A8827 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A8827#FFFFFF#000000##000000
##5A88271.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E18
Deuteranopia (green-blind)
#887A30
Tritanopia (blue-blind)
#5C8275
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5a8827;
/* rgb */ color: rgb(90, 136, 39);
/* oklch */ color: oklch(57.3% 0.136 131.5);
Tailwind
colors: {
  custom: {
    50: '#8cab67',
    500: '#5a8827',
    950: '#000000',
  },
}
SCSS
$custom: #5a8827;
$custom-light: #8cab67;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8827",
  "rgb": {
    "r": 90,
    "g": 136,
    "b": 39
  },
  "hsl": {
    "h": 88.454,
    "s": 55.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57332,
    "c": 0.13578,
    "h": 131.5
  },
  "luminance": 0.19928
}

Semantic roles & 50–950 ramp

primary
#5A8827
secondary
#8356B5
accent
#49DF90
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #5A8827

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

Preview Lab → · Contrast checker → · Palette generator →

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