#5A9222#5A9222

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

Color values

HEX#5A9222
RGBrgb(90, 146, 34)
HSLhsl(90, 62%, 35%)
HSVhsv(90, 77%, 57%)
CMYKcmyk(38.4%, 0%, 76.7%, 42.7%)
CIE-LABlab(54.91, -36.76, 49.96)
CIE-LCHlch(54.91, 62.03, 126.35°)
OKLaboklab(59.9% -0.1036 0.1115)
OKLCHoklch(59.9% 0.152 132.9)
XYZxyz(14.7839, 22.8463, 5.1439)
Luminance0.2285 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9222 #5A2292
analogous
#929222 #5A9222 #229222
triadic
#5A9222 #225A92 #92225A
tetradic
#5A9222 #229292 #5A2292 #922222
square
#5A9222 #229292 #5A2292 #922222
split-complementary
#5A9222 #222292 #922292
monochromatic
#1D2F0B #3B6016 #5A9222 #79C42E #97D857

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A9222#FFFFFF#000000##000000
##5A92221.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)
#988609
Deuteranopia (green-blind)
#91822D
Tritanopia (blue-blind)
#5B8C7D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5a9222;
/* rgb */ color: rgb(90, 146, 34);
/* oklch */ color: oklch(59.9% 0.152 132.9);
Tailwind
colors: {
  custom: {
    50: '#8eb266',
    500: '#5a9222',
    950: '#000000',
  },
}
SCSS
$custom: #5a9222;
$custom-light: #8eb266;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9222",
  "rgb": {
    "r": 90,
    "g": 146,
    "b": 34
  },
  "hsl": {
    "h": 90,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.59899,
    "c": 0.15217,
    "h": 132.9
  },
  "luminance": 0.22847
}

Semantic roles & 50–950 ramp

primary
#5A9222
secondary
#8854BC
accent
#43E594
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A9222

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

Preview Lab → · Contrast checker → · Palette generator →

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