#5AB321#5AB321

#5AB321 is a light, vivid yellow-green. Relative luminance 0.345; OKLCH L 68.5% C 0.193 H 136.6°. Best body text is #000000 at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#5AB321
RGBrgb(90, 179, 33)
HSLhsl(97, 69%, 42%)
HSVhsv(97, 82%, 70%)
CMYKcmyk(49.7%, 0%, 81.6%, 29.8%)
CIE-LABlab(65.38, -50.36, 60.12)
CIE-LCHlch(65.38, 78.43, 129.95°)
OKLaboklab(68.48% -0.1402 0.1326)
OKLCHoklch(68.48% 0.193 136.6)
XYZxyz(20.6105, 34.5222, 7.0160)
Luminance0.3452 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5AB321 #7A21B3
analogous
#A3B321 #5AB321 #21B331
triadic
#5AB321 #215AB3 #B3215A
tetradic
#5AB321 #21A3B3 #7A21B3 #B33121
square
#5AB321 #21A3B3 #7A21B3 #B33121
split-complementary
#5AB321 #3121B3 #B321A3
monochromatic
#264C0E #407F17 #5AB321 #77DA37 #9AE46B

Accessibility & contrast

On white

2.66
#5AB321 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.90
#5AB321 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5AB321
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5AB321#FFFFFF#000000##000000
##5AB3211.002.667.907.90
#FFFFFF2.661.0021.0021.00
#0000007.9021.001.001.00
##0000007.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A300
Deuteranopia (green-blind)
#AE9C33
Tritanopia (blue-blind)
#55AC99
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #5ab321;
/* rgb */ color: rgb(90, 179, 33);
/* oklch */ color: oklch(68.5% 0.193 136.6);
Tailwind
colors: {
  custom: {
    50: '#91ca6a',
    500: '#5ab321',
    950: '#000000',
  },
}
SCSS
$custom: #5ab321;
$custom-light: #91ca6a;
$custom-dark: #000000;
JSON
{
  "hex": "#5ab321",
  "rgb": {
    "r": 90,
    "g": 179,
    "b": 33
  },
  "hsl": {
    "h": 96.575,
    "s": 68.868,
    "l": 41.569
  },
  "oklch": {
    "l": 0.68481,
    "c": 0.19301,
    "h": 136.6
  },
  "luminance": 0.34524
}

Semantic roles & 50–950 ramp

primary
#5AB321
secondary
#A366CA
accent
#3CECA7
background
#F9FCF6
surface
#F2F8EC
border
#CCD1C7
text
#0E1307
muted
#7E827A

Preview Lab

Preview with #5AB321

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

Preview Lab → · Contrast checker → · Palette generator →

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