#5A9921#5A9921

#5A9921 is a mid, vivid yellow-green. Relative luminance 0.251; OKLCH L 61.7% C 0.162 H 133.9°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#5A9921
RGBrgb(90, 153, 33)
HSLhsl(92, 65%, 36%)
HSVhsv(92, 78%, 60%)
CMYKcmyk(41.2%, 0%, 78.4%, 40%)
CIE-LABlab(57.14, -39.86, 52.44)
CIE-LCHlch(57.14, 65.87, 127.24°)
OKLaboklab(61.72% -0.112 0.1165)
OKLCHoklch(61.72% 0.162 133.9)
XYZxyz(15.8819, 25.0651, 5.4398)
Luminance0.2507 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9921 #602199
analogous
#969921 #5A9921 #219924
triadic
#5A9921 #215A99 #99215A
tetradic
#5A9921 #219699 #602199 #992421
square
#5A9921 #219699 #602199 #992421
split-complementary
#5A9921 #242199 #992196
monochromatic
#1F340B #3C6716 #5A9921 #78CB2C #97DB59

Accessibility & contrast

On white

3.49
#5A9921 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#5A9921 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A9921
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A9921#FFFFFF#000000##000000
##5A99211.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8C01
Deuteranopia (green-blind)
#97872E
Tritanopia (blue-blind)
#5A9383
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #5a9921;
/* rgb */ color: rgb(90, 153, 33);
/* oklch */ color: oklch(61.7% 0.162 133.9);
Tailwind
colors: {
  custom: {
    50: '#8eb766',
    500: '#5a9921',
    950: '#000000',
  },
}
SCSS
$custom: #5a9921;
$custom-light: #8eb766;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9921",
  "rgb": {
    "r": 90,
    "g": 153,
    "b": 33
  },
  "hsl": {
    "h": 91.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61718,
    "c": 0.16161,
    "h": 133.9
  },
  "luminance": 0.25066
}

Semantic roles & 50–950 ramp

primary
#5A9921
secondary
#8E56BF
accent
#40E898
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A9921

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

Preview Lab → · Contrast checker → · Palette generator →

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