#5AB31B#5AB31B

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

Color values

HEX#5AB31B
RGBrgb(90, 179, 27)
HSLhsl(95, 74%, 40%)
HSVhsv(95, 85%, 70%)
CMYKcmyk(49.7%, 0%, 84.9%, 29.8%)
CIE-LABlab(65.35, -50.63, 61.65)
CIE-LCHlch(65.35, 79.78, 129.40°)
OKLaboklab(68.45% -0.1412 0.135)
OKLCHoklch(68.45% 0.195 136.3)
XYZxyz(20.5338, 34.4916, 6.6122)
Luminance0.3449 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5AB31B #741BB3
analogous
#A6B31B #5AB31B #1BB328
triadic
#5AB31B #1B5AB3 #B31B5A
tetradic
#5AB31B #1BA6B3 #741BB3 #B3281B
square
#5AB31B #1BA6B3 #741BB3 #B3281B
split-complementary
#5AB31B #281BB3 #B31BA6
monochromatic
#25490B #3F7E13 #5AB31B #76DF2C #99E761

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5AB31B#FFFFFF#000000##000000
##5AB31B1.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)
#AE9C2F
Tritanopia (blue-blind)
#55AC98
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #5ab31b;
/* rgb */ color: rgb(90, 179, 27);
/* oklch */ color: oklch(68.5% 0.195 136.3);
Tailwind
colors: {
  custom: {
    50: '#92ca68',
    500: '#5ab31b',
    950: '#000000',
  },
}
SCSS
$custom: #5ab31b;
$custom-light: #92ca68;
$custom-dark: #000000;
JSON
{
  "hex": "#5ab31b",
  "rgb": {
    "r": 90,
    "g": 179,
    "b": 27
  },
  "hsl": {
    "h": 95.132,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.68454,
    "c": 0.19538,
    "h": 136.3
  },
  "luminance": 0.34493
}

Semantic roles & 50–950 ramp

primary
#5AB31B
secondary
#9E5ECC
accent
#37F0A4
background
#F9FCF6
surface
#F2F8EB
border
#CCD1C6
text
#0E1307
muted
#7E827A

Preview Lab

Preview with #5AB31B

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

Preview Lab → · Contrast checker → · Palette generator →

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