#5FB31F#5FB31F

#5FB31F is a light, vivid yellow-green. Relative luminance 0.348; OKLCH L 68.7% C 0.191 H 135.6°. Best body text is #000000 at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#5FB31F
RGBrgb(95, 179, 31)
HSLhsl(94, 70%, 41%)
HSVhsv(94, 83%, 70%)
CMYKcmyk(46.9%, 0%, 82.7%, 29.8%)
CIE-LABlab(65.57, -48.91, 60.91)
CIE-LCHlch(65.57, 78.12, 128.76°)
OKLaboklab(68.69% -0.1368 0.1339)
OKLCHoklch(68.69% 0.191 135.6)
XYZxyz(21.0862, 34.7707, 6.8964)
Luminance0.3477 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5FB31F #731FB3
analogous
#A9B31F #5FB31F #1FB329
triadic
#5FB31F #1F5FB3 #B31F5F
tetradic
#5FB31F #1FA9B3 #731FB3 #B3291F
square
#5FB31F #1FA9B3 #731FB3 #B3291F
split-complementary
#5FB31F #291FB3 #B31FA9
monochromatic
#284B0D #437F16 #5FB31F #7CDC33 #9EE568

Accessibility & contrast

On white

2.64
#5FB31F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.95
#5FB31F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5FB31F
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5FB31F#FFFFFF#000000##000000
##5FB31F1.002.647.957.95
#FFFFFF2.641.0021.0021.00
#0000007.9521.001.001.00
##0000007.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA400
Deuteranopia (green-blind)
#AF9D31
Tritanopia (blue-blind)
#5CAC99
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #5fb31f;
/* rgb */ color: rgb(95, 179, 31);
/* oklch */ color: oklch(68.7% 0.191 135.6);
Tailwind
colors: {
  custom: {
    50: '#94ca69',
    500: '#5fb31f',
    950: '#000000',
  },
}
SCSS
$custom: #5fb31f;
$custom-light: #94ca69;
$custom-dark: #000000;
JSON
{
  "hex": "#5fb31f",
  "rgb": {
    "r": 95,
    "g": 179,
    "b": 31
  },
  "hsl": {
    "h": 94.054,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.68695,
    "c": 0.1914,
    "h": 135.6
  },
  "luminance": 0.34772
}

Semantic roles & 50–950 ramp

primary
#5FB31F
secondary
#9E64CA
accent
#3BEDA0
background
#F9FCF6
surface
#F2F8EC
border
#CCD1C7
text
#0E1307
muted
#7E827A

Preview Lab

Preview with #5FB31F

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

Preview Lab → · Contrast checker → · Palette generator →

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