#5A9722#5A9722

#5A9722 is a mid, vivid yellow-green. Relative luminance 0.244; OKLCH L 61.2% C 0.159 H 133.7°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#5A9722
RGBrgb(90, 151, 34)
HSLhsl(91, 63%, 36%)
HSVhsv(91, 77%, 59%)
CMYKcmyk(40.4%, 0%, 77.5%, 40.8%)
CIE-LABlab(56.51, -38.94, 51.50)
CIE-LCHlch(56.51, 64.57, 127.09°)
OKLaboklab(61.2% -0.1095 0.1147)
OKLCHoklch(61.2% 0.159 133.7)
XYZxyz(15.5715, 24.4216, 5.4064)
Luminance0.2442 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9722 #5F2297
analogous
#959722 #5A9722 #229725
triadic
#5A9722 #225A97 #97225A
tetradic
#5A9722 #229597 #5F2297 #972522
square
#5A9722 #229597 #5F2297 #972522
split-complementary
#5A9722 #252297 #972295
monochromatic
#1E330C #3C6517 #5A9722 #78C92D #97DA5A

Accessibility & contrast

On white

3.57
#5A9722 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#5A9722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A9722
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A9722#FFFFFF#000000##000000
##5A97221.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B05
Deuteranopia (green-blind)
#95862E
Tritanopia (blue-blind)
#5A9181
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5a9722;
/* rgb */ color: rgb(90, 151, 34);
/* oklch */ color: oklch(61.2% 0.159 133.7);
Tailwind
colors: {
  custom: {
    50: '#8eb666',
    500: '#5a9722',
    950: '#000000',
  },
}
SCSS
$custom: #5a9722;
$custom-light: #8eb666;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9722",
  "rgb": {
    "r": 90,
    "g": 151,
    "b": 34
  },
  "hsl": {
    "h": 91.282,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.61203,
    "c": 0.15855,
    "h": 133.7
  },
  "luminance": 0.24422
}

Semantic roles & 50–950 ramp

primary
#5A9722
secondary
#8D57BE
accent
#42E697
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A9722

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

Preview Lab → · Contrast checker → · Palette generator →

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