#5AB31C#5AB31C

#5AB31C 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#5AB31C
RGBrgb(90, 179, 28)
HSLhsl(95, 73%, 41%)
HSVhsv(95, 84%, 70%)
CMYKcmyk(49.7%, 0%, 84.4%, 29.8%)
CIE-LABlab(65.35, -50.59, 61.41)
CIE-LCHlch(65.35, 79.56, 129.48°)
OKLaboklab(68.46% -0.1411 0.1346)
OKLCHoklch(68.46% 0.195 136.3)
XYZxyz(20.5456, 34.4963, 6.6742)
Luminance0.3450 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5AB31C #751CB3
analogous
#A5B31C #5AB31C #1CB329
triadic
#5AB31C #1C5AB3 #B31C5A
tetradic
#5AB31C #1CA5B3 #751CB3 #B3291C
square
#5AB31C #1CA5B3 #751CB3 #B3291C
split-complementary
#5AB31C #291CB3 #B31CA5
monochromatic
#25490B #3F7E14 #5AB31C #76DE2E #99E763

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #5ab31c;
/* rgb */ color: rgb(90, 179, 28);
/* oklch */ color: oklch(68.5% 0.195 136.3);
Tailwind
colors: {
  custom: {
    50: '#92ca68',
    500: '#5ab31c',
    950: '#000000',
  },
}
SCSS
$custom: #5ab31c;
$custom-light: #92ca68;
$custom-dark: #000000;
JSON
{
  "hex": "#5ab31c",
  "rgb": {
    "r": 90,
    "g": 179,
    "b": 28
  },
  "hsl": {
    "h": 95.364,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.68458,
    "c": 0.19501,
    "h": 136.3
  },
  "luminance": 0.34498
}

Semantic roles & 50–950 ramp

primary
#5AB31C
secondary
#9F5FCB
accent
#38F0A4
background
#F9FCF6
surface
#F2F8EB
border
#CCD1C6
text
#0E1307
muted
#7E827A

Preview Lab

Preview with #5AB31C

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

Preview Lab → · Contrast checker → · Palette generator →

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