#5AC21F#5AC21F

#5AC21F is a light, highly saturated yellow-green. Relative luminance 0.409; OKLCH L 72.4% C 0.211 H 137.5°. Best body text is #000000 at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#5AC21F
RGBrgb(90, 194, 31)
HSLhsl(98, 72%, 44%)
HSVhsv(98, 84%, 76%)
CMYKcmyk(53.6%, 0%, 84%, 23.9%)
CIE-LABlab(70.07, -56.06, 64.88)
CIE-LCHlch(70.07, 85.74, 130.83°)
OKLaboklab(72.35% -0.1556 0.1424)
OKLCHoklch(72.35% 0.211 137.5)
XYZxyz(23.7548, 40.8543, 7.9300)
Luminance0.4086 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5AC21F #871FC2
analogous
#ACC21F #5AC21F #1FC236
triadic
#5AC21F #1F5AC2 #C21F5A
tetradic
#5AC21F #1FACC2 #871FC2 #C2361F
square
#5AC21F #1FACC2 #871FC2 #C2361F
split-complementary
#5AC21F #361FC2 #C21FAC
monochromatic
#29580E #428D17 #5AC21F #79E03E #9DE973

Accessibility & contrast

On white

2.29
#5AC21F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.17
#5AC21F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5AC21F
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5AC21F#FFFFFF#000000##000000
##5AC21F1.002.299.179.17
#FFFFFF2.291.0021.0021.00
#0000009.1721.001.001.00
##0000009.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B100
Deuteranopia (green-blind)
#BBA835
Tritanopia (blue-blind)
#52BBA5
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #5ac21f;
/* rgb */ color: rgb(90, 194, 31);
/* oklch */ color: oklch(72.4% 0.211 137.5);
Tailwind
colors: {
  custom: {
    50: '#94d56b',
    500: '#5ac21f',
    950: '#000000',
  },
}
SCSS
$custom: #5ac21f;
$custom-light: #94d56b;
$custom-dark: #000000;
JSON
{
  "hex": "#5ac21f",
  "rgb": {
    "r": 90,
    "g": 194,
    "b": 31
  },
  "hsl": {
    "h": 98.282,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.72351,
    "c": 0.21088,
    "h": 137.5
  },
  "luminance": 0.40856
}

Semantic roles & 50–950 ramp

primary
#5AC21F
secondary
#AC6DCF
accent
#39EFAD
background
#F9FDF6
surface
#F2FAEC
border
#CCD3C7
text
#0E1408
muted
#7E837A

Preview Lab

Preview with #5AC21F

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

Preview Lab → · Contrast checker → · Palette generator →

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