#5A8822#5A8822

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

Color values

HEX#5A8822
RGBrgb(90, 136, 34)
HSLhsl(87, 60%, 33%)
HSVhsv(87, 75%, 53%)
CMYKcmyk(33.8%, 0%, 75%, 46.7%)
CIE-LABlab(51.72, -32.26, 46.84)
CIE-LCHlch(51.72, 56.87, 124.55°)
OKLaboklab(57.29% -0.0914 0.1049)
OKLCHoklch(57.29% 0.139 131)
XYZxyz(13.3092, 19.8970, 4.6523)
Luminance0.1990 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8822 #502288
analogous
#888322 #5A8822 #278822
triadic
#5A8822 #225A88 #88225A
tetradic
#5A8822 #228883 #502288 #882227
square
#5A8822 #228883 #502288 #882227
split-complementary
#5A8822 #222788 #832288
monochromatic
#19260A #3A5716 #5A8822 #7AB92E #99D351

Accessibility & contrast

On white

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

On black

4.98
#5A8822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8822
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8822#FFFFFF#000000##000000
##5A88221.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a8822;
/* rgb */ color: rgb(90, 136, 34);
/* oklch */ color: oklch(57.3% 0.139 131.0);
Tailwind
colors: {
  custom: {
    50: '#8dab65',
    500: '#5a8822',
    950: '#000000',
  },
}
SCSS
$custom: #5a8822;
$custom-light: #8dab65;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8822",
  "rgb": {
    "r": 90,
    "g": 136,
    "b": 34
  },
  "hsl": {
    "h": 87.059,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57293,
    "c": 0.13914,
    "h": 131
  },
  "luminance": 0.19897
}

Semantic roles & 50–950 ramp

primary
#5A8822
secondary
#7E4FB7
accent
#45E38C
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #5A8822

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

Preview Lab → · Contrast checker → · Palette generator →

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