#5AAA21#5AAA21

#5AAA21 is a light, vivid yellow-green. Relative luminance 0.310; OKLCH L 66.1% C 0.182 H 135.8°. Best body text is #000000 at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5AAA21
RGBrgb(90, 170, 33)
HSLhsl(95, 67%, 40%)
HSVhsv(95, 81%, 67%)
CMYKcmyk(47.1%, 0%, 80.6%, 33.3%)
CIE-LABlab(62.53, -46.85, 57.50)
CIE-LCHlch(62.53, 74.17, 129.17°)
OKLaboklab(66.15% -0.1308 0.1271)
OKLCHoklch(66.15% 0.182 135.8)
XYZxyz(18.8652, 31.0317, 6.4342)
Luminance0.3103 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5AAA21 #7121AA
analogous
#9FAA21 #5AAA21 #21AA2C
triadic
#5AAA21 #215AAA #AA215A
tetradic
#5AAA21 #219FAA #7121AA #AA2C21
square
#5AAA21 #219FAA #7121AA #AA2C21
split-complementary
#5AAA21 #2C21AA #AA219F
monochromatic
#24430D #3F7717 #5AAA21 #76D731 #98E164

Accessibility & contrast

On white

2.91
#5AAA21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.21
#5AAA21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5AAA21
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5AAA21#FFFFFF#000000##000000
##5AAA211.002.917.217.21
#FFFFFF2.911.0021.0021.00
#0000007.2121.001.001.00
##0000007.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09B00
Deuteranopia (green-blind)
#A69531
Tritanopia (blue-blind)
#57A391
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #5aaa21;
/* rgb */ color: rgb(90, 170, 33);
/* oklch */ color: oklch(66.1% 0.182 135.8);
Tailwind
colors: {
  custom: {
    50: '#90c469',
    500: '#5aaa21',
    950: '#000000',
  },
}
SCSS
$custom: #5aaa21;
$custom-light: #90c469;
$custom-dark: #000000;
JSON
{
  "hex": "#5aaa21",
  "rgb": {
    "r": 90,
    "g": 170,
    "b": 33
  },
  "hsl": {
    "h": 95.036,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.66145,
    "c": 0.1824,
    "h": 135.8
  },
  "luminance": 0.31033
}

Semantic roles & 50–950 ramp

primary
#5AAA21
secondary
#9C61C6
accent
#3DEAA2
background
#F9FCF6
surface
#F2F8EB
border
#CCD1C6
text
#0D1307
muted
#7E827A

Preview Lab

Preview with #5AAA21

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

Preview Lab → · Contrast checker → · Palette generator →

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