#5AB31F#5AB31F

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

Color values

HEX#5AB31F
RGBrgb(90, 179, 31)
HSLhsl(96, 70%, 41%)
HSVhsv(96, 83%, 70%)
CMYKcmyk(49.7%, 0%, 82.7%, 29.8%)
CIE-LABlab(65.37, -50.46, 60.65)
CIE-LCHlch(65.37, 78.90, 129.76°)
OKLaboklab(68.47% -0.1406 0.1335)
OKLCHoklch(68.47% 0.194 136.5)
XYZxyz(20.5833, 34.5113, 6.8728)
Luminance0.3451 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5AB31F #781FB3
analogous
#A4B31F #5AB31F #1FB32E
triadic
#5AB31F #1F5AB3 #B31F5A
tetradic
#5AB31F #1FA4B3 #781FB3 #B32E1F
square
#5AB31F #1FA4B3 #781FB3 #B32E1F
split-complementary
#5AB31F #2E1FB3 #B31FA4
monochromatic
#264B0D #407F16 #5AB31F #77DC33 #9AE568

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5AB31F#FFFFFF#000000##000000
##5AB31F1.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)
#AE9C32
Tritanopia (blue-blind)
#55AC99
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #5ab31f;
/* rgb */ color: rgb(90, 179, 31);
/* oklch */ color: oklch(68.5% 0.194 136.5);
Tailwind
colors: {
  custom: {
    50: '#92ca69',
    500: '#5ab31f',
    950: '#000000',
  },
}
SCSS
$custom: #5ab31f;
$custom-light: #92ca69;
$custom-dark: #000000;
JSON
{
  "hex": "#5ab31f",
  "rgb": {
    "r": 90,
    "g": 179,
    "b": 31
  },
  "hsl": {
    "h": 96.081,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.68471,
    "c": 0.19384,
    "h": 136.5
  },
  "luminance": 0.34513
}

Semantic roles & 50–950 ramp

primary
#5AB31F
secondary
#A164CA
accent
#3BEDA6
background
#F9FCF6
surface
#F2F8EC
border
#CCD1C7
text
#0E1307
muted
#7E827A

Preview Lab

Preview with #5AB31F

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

Preview Lab → · Contrast checker → · Palette generator →

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