#5BAB21#5BAB21

#5BAB21 is a light, vivid yellow-green. Relative luminance 0.315; OKLCH L 66.5% C 0.183 H 135.7°. Best body text is #000000 at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#5BAB21
RGBrgb(91, 171, 33)
HSLhsl(95, 68%, 40%)
HSVhsv(95, 81%, 67%)
CMYKcmyk(46.8%, 0%, 80.7%, 32.9%)
CIE-LABlab(62.89, -46.93, 57.85)
CIE-LCHlch(62.89, 74.49, 129.05°)
OKLaboklab(66.45% -0.1311 0.1278)
OKLCHoklch(66.45% 0.183 135.7)
XYZxyz(19.1513, 31.4585, 6.5015)
Luminance0.3146 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5BAB21 #7121AB
analogous
#A0AB21 #5BAB21 #21AB2C
triadic
#5BAB21 #215BAB #AB215B
tetradic
#5BAB21 #21A0AB #7121AB #AB2C21
square
#5BAB21 #21A0AB #7121AB #AB2C21
split-complementary
#5BAB21 #2C21AB #AB21A0
monochromatic
#24440D #407817 #5BAB21 #77D732 #99E165

Accessibility & contrast

On white

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

On black

7.29
#5BAB21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5BAB21
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5BAB21#FFFFFF#000000##000000
##5BAB211.002.887.297.29
#FFFFFF2.881.0021.0021.00
#0000007.2921.001.001.00
##0000007.2921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5bab21;
/* rgb */ color: rgb(91, 171, 33);
/* oklch */ color: oklch(66.5% 0.183 135.7);
Tailwind
colors: {
  custom: {
    50: '#91c569',
    500: '#5bab21',
    950: '#000000',
  },
}
SCSS
$custom: #5bab21;
$custom-light: #91c569;
$custom-dark: #000000;
JSON
{
  "hex": "#5bab21",
  "rgb": {
    "r": 91,
    "g": 171,
    "b": 33
  },
  "hsl": {
    "h": 94.783,
    "s": 67.647,
    "l": 40
  },
  "oklch": {
    "l": 0.66451,
    "c": 0.18309,
    "h": 135.7
  },
  "luminance": 0.3146
}

Semantic roles & 50–950 ramp

primary
#5BAB21
secondary
#9C61C7
accent
#3DEBA2
background
#F9FCF6
surface
#F2F8EB
border
#CCD1C6
text
#0E1307
muted
#7E827A

Preview Lab

Preview with #5BAB21

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

Preview Lab → · Contrast checker → · Palette generator →

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