#5A9221#5A9221

#5A9221 is a mid, vivid yellow-green. Relative luminance 0.228; OKLCH L 59.9% C 0.153 H 132.8°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#5A9221
RGBrgb(90, 146, 33)
HSLhsl(90, 63%, 35%)
HSVhsv(90, 77%, 57%)
CMYKcmyk(38.4%, 0%, 77.4%, 42.7%)
CIE-LABlab(54.91, -36.83, 50.31)
CIE-LCHlch(54.91, 62.35, 126.21°)
OKLaboklab(59.89% -0.1038 0.112)
OKLCHoklch(59.89% 0.153 132.8)
XYZxyz(14.7696, 22.8406, 5.0690)
Luminance0.2284 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9221 #592192
analogous
#929221 #5A9221 #219221
triadic
#5A9221 #215A92 #92215A
tetradic
#5A9221 #219292 #592192 #922121
square
#5A9221 #219292 #592192 #922121
split-complementary
#5A9221 #212192 #922192
monochromatic
#1C2E0A #3B6016 #5A9221 #79C42C #97D955

Accessibility & contrast

On white

3.77
#5A9221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#5A9221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A9221
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A9221#FFFFFF#000000##000000
##5A92211.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#988606
Deuteranopia (green-blind)
#91822D
Tritanopia (blue-blind)
#5B8C7D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5a9221;
/* rgb */ color: rgb(90, 146, 33);
/* oklch */ color: oklch(59.9% 0.153 132.8);
Tailwind
colors: {
  custom: {
    50: '#8eb265',
    500: '#5a9221',
    950: '#000000',
  },
}
SCSS
$custom: #5a9221;
$custom-light: #8eb265;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9221",
  "rgb": {
    "r": 90,
    "g": 146,
    "b": 33
  },
  "hsl": {
    "h": 89.735,
    "s": 63.128,
    "l": 35.098
  },
  "oklch": {
    "l": 0.59892,
    "c": 0.15274,
    "h": 132.8
  },
  "luminance": 0.22841
}

Semantic roles & 50–950 ramp

primary
#5A9221
secondary
#8753BC
accent
#42E693
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A9221

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

Preview Lab → · Contrast checker → · Palette generator →

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