#5A9721#5A9721

#5A9721 is a mid, vivid yellow-green. Relative luminance 0.244; OKLCH L 61.2% C 0.159 H 133.6°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#5A9721
RGBrgb(90, 151, 33)
HSLhsl(91, 64%, 36%)
HSVhsv(91, 78%, 59%)
CMYKcmyk(40.4%, 0%, 78.1%, 40.8%)
CIE-LABlab(56.50, -39.00, 51.83)
CIE-LCHlch(56.50, 64.87, 126.96°)
OKLaboklab(61.2% -0.1097 0.1152)
OKLCHoklch(61.2% 0.159 133.6)
XYZxyz(15.5573, 24.4159, 5.3316)
Luminance0.2442 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9721 #5E2197
analogous
#959721 #5A9721 #219723
triadic
#5A9721 #215A97 #97215A
tetradic
#5A9721 #219597 #5E2197 #972321
square
#5A9721 #219597 #5E2197 #972321
split-complementary
#5A9721 #232197 #972195
monochromatic
#1E330B #3C6516 #5A9721 #78C92C #97DA58

Accessibility & contrast

On white

3.57
#5A9721 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#5A9721 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A9721
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A9721#FFFFFF#000000##000000
##5A97211.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B02
Deuteranopia (green-blind)
#95862E
Tritanopia (blue-blind)
#5A9181
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5a9721;
/* rgb */ color: rgb(90, 151, 33);
/* oklch */ color: oklch(61.2% 0.159 133.6);
Tailwind
colors: {
  custom: {
    50: '#8eb666',
    500: '#5a9721',
    950: '#000000',
  },
}
SCSS
$custom: #5a9721;
$custom-light: #8eb666;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9721",
  "rgb": {
    "r": 90,
    "g": 151,
    "b": 33
  },
  "hsl": {
    "h": 91.017,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.61196,
    "c": 0.1591,
    "h": 133.6
  },
  "luminance": 0.24417
}

Semantic roles & 50–950 ramp

primary
#5A9721
secondary
#8C55BE
accent
#41E797
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A9721

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

Preview Lab → · Contrast checker → · Palette generator →

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