#5A8422#5A8422

#5A8422 is a mid, vivid yellow-green. Relative luminance 0.188; OKLCH L 56.3% C 0.134 H 130.2°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#5A8422
RGBrgb(90, 132, 34)
HSLhsl(86, 59%, 33%)
HSVhsv(86, 74%, 52%)
CMYKcmyk(31.8%, 0%, 74.2%, 48.2%)
CIE-LABlab(50.44, -30.39, 45.57)
CIE-LCHlch(50.44, 54.78, 123.70°)
OKLaboklab(56.25% -0.0863 0.1023)
OKLCHoklch(56.25% 0.134 130.2)
XYZxyz(12.7564, 18.7913, 4.4680)
Luminance0.1879 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8422 #4C2284
analogous
#847D22 #5A8422 #298422
triadic
#5A8422 #225A84 #84225A
tetradic
#5A8422 #22847D #4C2284 #842229
square
#5A8422 #22847D #4C2284 #842229
split-complementary
#5A8422 #222984 #7D2284
monochromatic
#182309 #395315 #5A8422 #7BB52F #9AD24F

Accessibility & contrast

On white

4.41
#5A8422 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#5A8422 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8422
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8422#FFFFFF#000000##000000
##5A84221.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A10
Deuteranopia (green-blind)
#84772B
Tritanopia (blue-blind)
#5C7E71
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5a8422;
/* rgb */ color: rgb(90, 132, 34);
/* oklch */ color: oklch(56.3% 0.134 130.2);
Tailwind
colors: {
  custom: {
    50: '#8ca864',
    500: '#5a8422',
    950: '#000000',
  },
}
SCSS
$custom: #5a8422;
$custom-light: #8ca864;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8422",
  "rgb": {
    "r": 90,
    "g": 132,
    "b": 34
  },
  "hsl": {
    "h": 85.714,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56251,
    "c": 0.13382,
    "h": 130.2
  },
  "luminance": 0.18792
}

Semantic roles & 50–950 ramp

primary
#5A8422
secondary
#794DB5
accent
#46E289
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F06
muted
#7D7F7A

Preview Lab

Preview with #5A8422

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

Preview Lab → · Contrast checker → · Palette generator →

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