#5A9D22#5A9D22

#5A9D22 is a light, vivid yellow-green. Relative luminance 0.264; OKLCH L 62.8% C 0.166 H 134.5°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#5A9D22
RGBrgb(90, 157, 34)
HSLhsl(93, 64%, 37%)
HSVhsv(93, 78%, 62%)
CMYKcmyk(42.7%, 0%, 78.3%, 38.4%)
CIE-LABlab(58.42, -41.49, 53.33)
CIE-LCHlch(58.42, 67.57, 127.88°)
OKLaboklab(62.77% -0.1163 0.1185)
OKLCHoklch(62.77% 0.166 134.5)
XYZxyz(16.5618, 26.4022, 5.7365)
Luminance0.2640 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9D22 #65229D
analogous
#989D22 #5A9D22 #229D28
triadic
#5A9D22 #225A9D #9D225A
tetradic
#5A9D22 #22989D #65229D #9D2822
square
#5A9D22 #22989D #65229D #9D2822
split-complementary
#5A9D22 #28229D #9D2298
monochromatic
#20380C #3D6B17 #5A9D22 #77CF2D #97DC5D

Accessibility & contrast

On white

3.34
#5A9D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#5A9D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A9D22
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A9D22#FFFFFF#000000##000000
##5A9D221.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A39001
Deuteranopia (green-blind)
#9A8A2F
Tritanopia (blue-blind)
#599786
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #5a9d22;
/* rgb */ color: rgb(90, 157, 34);
/* oklch */ color: oklch(62.8% 0.166 134.5);
Tailwind
colors: {
  custom: {
    50: '#8fba67',
    500: '#5a9d22',
    950: '#000000',
  },
}
SCSS
$custom: #5a9d22;
$custom-light: #8fba67;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9d22",
  "rgb": {
    "r": 90,
    "g": 157,
    "b": 34
  },
  "hsl": {
    "h": 92.683,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.62767,
    "c": 0.16607,
    "h": 134.5
  },
  "luminance": 0.26403
}

Semantic roles & 50–950 ramp

primary
#5A9D22
secondary
#925AC1
accent
#40E79B
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1207
muted
#7E817A

Preview Lab

Preview with #5A9D22

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

Preview Lab → · Contrast checker → · Palette generator →

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