#5AAB21#5AAB21

#5AAB21 is a light, vivid yellow-green. Relative luminance 0.314; OKLCH L 66.4% C 0.184 H 135.9°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5AAB21
RGBrgb(90, 171, 33)
HSLhsl(95, 68%, 40%)
HSVhsv(95, 81%, 67%)
CMYKcmyk(47.4%, 0%, 80.7%, 32.9%)
CIE-LABlab(62.85, -47.25, 57.80)
CIE-LCHlch(62.85, 74.65, 129.26°)
OKLaboklab(66.41% -0.1319 0.1277)
OKLCHoklch(66.41% 0.184 135.9)
XYZxyz(19.0534, 31.4080, 6.4969)
Luminance0.3141 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5AAB21 #7221AB
analogous
#9FAB21 #5AAB21 #21AB2D
triadic
#5AAB21 #215AAB #AB215A
tetradic
#5AAB21 #219FAB #7221AB #AB2D21
square
#5AAB21 #219FAB #7221AB #AB2D21
split-complementary
#5AAB21 #2D21AB #AB219F
monochromatic
#24440D #3F7817 #5AAB21 #76D732 #98E165

Accessibility & contrast

On white

2.88
#5AAB21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.28
#5AAB21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5AAB21
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5AAB21#FFFFFF#000000##000000
##5AAB211.002.887.287.28
#FFFFFF2.881.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C00
Deuteranopia (green-blind)
#A79631
Tritanopia (blue-blind)
#57A492
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #5aab21;
/* rgb */ color: rgb(90, 171, 33);
/* oklch */ color: oklch(66.4% 0.184 135.9);
Tailwind
colors: {
  custom: {
    50: '#90c569',
    500: '#5aab21',
    950: '#000000',
  },
}
SCSS
$custom: #5aab21;
$custom-light: #90c569;
$custom-dark: #000000;
JSON
{
  "hex": "#5aab21",
  "rgb": {
    "r": 90,
    "g": 171,
    "b": 33
  },
  "hsl": {
    "h": 95.217,
    "s": 67.647,
    "l": 40
  },
  "oklch": {
    "l": 0.66405,
    "c": 0.1836,
    "h": 135.9
  },
  "luminance": 0.31409
}

Semantic roles & 50–950 ramp

primary
#5AAB21
secondary
#9D61C7
accent
#3DEBA3
background
#F9FCF6
surface
#F2F8EB
border
#CCD1C6
text
#0D1307
muted
#7E827A

Preview Lab

Preview with #5AAB21

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

Preview Lab → · Contrast checker → · Palette generator →

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