#5FAB31#5FAB31

#5FAB31 is a light, vivid yellow-green. Relative luminance 0.318; OKLCH L 66.7% C 0.172 H 136.1°. Best body text is #000000 at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#5FAB31
RGBrgb(95, 171, 49)
HSLhsl(97, 55%, 43%)
HSVhsv(97, 71%, 67%)
CMYKcmyk(44.4%, 0%, 71.3%, 32.9%)
CIE-LABlab(63.16, -44.63, 52.74)
CIE-LCHlch(63.16, 69.08, 130.24°)
OKLaboklab(66.75% -0.1241 0.1194)
OKLCHoklch(66.75% 0.172 136.1)
XYZxyz(19.8361, 31.7793, 7.9939)
Luminance0.3178 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5FAB31 #7D31AB
analogous
#9CAB31 #5FAB31 #31AB40
triadic
#5FAB31 #315FAB #AB315F
tetradic
#5FAB31 #319CAB #7D31AB #AB4031
square
#5FAB31 #319CAB #7D31AB #AB4031
split-complementary
#5FAB31 #4031AB #AB319C
monochromatic
#2A4C16 #457B23 #5FAB31 #7DCC4D #A0DA7D

Accessibility & contrast

On white

2.85
#5FAB31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.36
#5FAB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5FAB31
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5FAB31#FFFFFF#000000##000000
##5FAB311.002.857.367.36
#FFFFFF2.851.0021.0021.00
#0000007.3621.001.001.00
##0000007.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D1D
Deuteranopia (green-blind)
#A7973C
Tritanopia (blue-blind)
#5CA593
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #5fab31;
/* rgb */ color: rgb(95, 171, 49);
/* oklch */ color: oklch(66.7% 0.172 136.1);
Tailwind
colors: {
  custom: {
    50: '#93c470',
    500: '#5fab31',
    950: '#000000',
  },
}
SCSS
$custom: #5fab31;
$custom-light: #93c470;
$custom-dark: #000000;
JSON
{
  "hex": "#5fab31",
  "rgb": {
    "r": 95,
    "g": 171,
    "b": 49
  },
  "hsl": {
    "h": 97.377,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.66748,
    "c": 0.17221,
    "h": 136.1
  },
  "luminance": 0.3178
}

Semantic roles & 50–950 ramp

primary
#5FAB31
secondary
#A575C2
accent
#49DFA6
background
#F9FCF7
surface
#F2F8ED
border
#CCD1C8
text
#0E1308
muted
#7E827B

Preview Lab

Preview with #5FAB31

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

Preview Lab → · Contrast checker → · Palette generator →

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