#5A8922#5A8922

#5A8922 is a mid, vivid yellow-green. Relative luminance 0.202; OKLCH L 57.6% C 0.140 H 131.3°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#5A8922
RGBrgb(90, 137, 34)
HSLhsl(87, 60%, 34%)
HSVhsv(87, 75%, 54%)
CMYKcmyk(34.3%, 0%, 75.2%, 46.3%)
CIE-LABlab(52.04, -32.72, 47.16)
CIE-LCHlch(52.04, 57.39, 124.75°)
OKLaboklab(57.55% -0.0926 0.1056)
OKLCHoklch(57.55% 0.14 131.3)
XYZxyz(13.4507, 20.1800, 4.6995)
Luminance0.2018 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8922 #512289
analogous
#898422 #5A8922 #268922
triadic
#5A8922 #225A89 #89225A
tetradic
#5A8922 #228984 #512289 #892226
square
#5A8922 #228984 #512289 #892226
split-complementary
#5A8922 #222689 #842289
monochromatic
#1A270A #3A5816 #5A8922 #7ABA2E #98D451

Accessibility & contrast

On white

4.17
#5A8922 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#5A8922 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8922
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8922#FFFFFF#000000##000000
##5A89221.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0E
Deuteranopia (green-blind)
#897B2C
Tritanopia (blue-blind)
#5C8375
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5a8922;
/* rgb */ color: rgb(90, 137, 34);
/* oklch */ color: oklch(57.6% 0.140 131.3);
Tailwind
colors: {
  custom: {
    50: '#8dab65',
    500: '#5a8922',
    950: '#000000',
  },
}
SCSS
$custom: #5a8922;
$custom-light: #8dab65;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8922",
  "rgb": {
    "r": 90,
    "g": 137,
    "b": 34
  },
  "hsl": {
    "h": 87.379,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57553,
    "c": 0.14046,
    "h": 131.3
  },
  "luminance": 0.2018
}

Semantic roles & 50–950 ramp

primary
#5A8922
secondary
#7F4FB8
accent
#44E38D
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5A8922

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

Preview Lab → · Contrast checker → · Palette generator →

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