#5A8D22#5A8D22

#5A8D22 is a mid, vivid yellow-green. Relative luminance 0.213; OKLCH L 58.6% C 0.146 H 132.0°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5A8D22
RGBrgb(90, 141, 34)
HSLhsl(89, 61%, 34%)
HSVhsv(89, 76%, 55%)
CMYKcmyk(36.2%, 0%, 75.9%, 44.7%)
CIE-LABlab(53.32, -34.54, 48.41)
CIE-LCHlch(53.32, 59.47, 125.51°)
OKLaboklab(58.6% -0.0975 0.1082)
OKLCHoklch(58.6% 0.146 132)
XYZxyz(14.0299, 21.3383, 4.8926)
Luminance0.2134 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8D22 #55228D
analogous
#8D8B22 #5A8D22 #258D22
triadic
#5A8D22 #225A8D #8D225A
tetradic
#5A8D22 #228D8B #55228D #8D2225
square
#5A8D22 #228D8B #55228D #8D2225
split-complementary
#5A8D22 #22258D #8B228D
monochromatic
#1B2A0A #3B5C16 #5A8D22 #79BE2E #98D654

Accessibility & contrast

On white

3.99
#5A8D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#5A8D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8D22
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8D22#FFFFFF#000000##000000
##5A8D221.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#93820C
Deuteranopia (green-blind)
#8C7E2D
Tritanopia (blue-blind)
#5B8778
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5a8d22;
/* rgb */ color: rgb(90, 141, 34);
/* oklch */ color: oklch(58.6% 0.146 132.0);
Tailwind
colors: {
  custom: {
    50: '#8dae65',
    500: '#5a8d22',
    950: '#000000',
  },
}
SCSS
$custom: #5a8d22;
$custom-light: #8dae65;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8d22",
  "rgb": {
    "r": 90,
    "g": 141,
    "b": 34
  },
  "hsl": {
    "h": 88.598,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58595,
    "c": 0.1457,
    "h": 132
  },
  "luminance": 0.21339
}

Semantic roles & 50–950 ramp

primary
#5A8D22
secondary
#8351B9
accent
#44E490
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5A8D22

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

Preview Lab → · Contrast checker → · Palette generator →

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