#5FB31C#5FB31C

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

Color values

HEX#5FB31C
RGBrgb(95, 179, 28)
HSLhsl(93, 73%, 41%)
HSVhsv(93, 84%, 70%)
CMYKcmyk(46.9%, 0%, 84.4%, 29.8%)
CIE-LABlab(65.56, -49.04, 61.67)
CIE-LCHlch(65.56, 78.79, 128.49°)
OKLaboklab(68.68% -0.1373 0.1351)
OKLCHoklch(68.68% 0.193 135.5)
XYZxyz(21.0485, 34.7556, 6.6978)
Luminance0.3476 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5FB31C #701CB3
analogous
#ABB31C #5FB31C #1CB324
triadic
#5FB31C #1C5FB3 #B31C5F
tetradic
#5FB31C #1CABB3 #701CB3 #B3241C
square
#5FB31C #1CABB3 #701CB3 #B3241C
split-complementary
#5FB31C #241CB3 #B31CAB
monochromatic
#27490B #437E14 #5FB31C #7CDE2E #9DE763

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5FB31C#FFFFFF#000000##000000
##5FB31C1.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)
#BAA300
Deuteranopia (green-blind)
#AF9D30
Tritanopia (blue-blind)
#5CAC98
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #5fb31c;
/* rgb */ color: rgb(95, 179, 28);
/* oklch */ color: oklch(68.7% 0.193 135.5);
Tailwind
colors: {
  custom: {
    50: '#95ca68',
    500: '#5fb31c',
    950: '#000000',
  },
}
SCSS
$custom: #5fb31c;
$custom-light: #95ca68;
$custom-dark: #000000;
JSON
{
  "hex": "#5fb31c",
  "rgb": {
    "r": 95,
    "g": 179,
    "b": 28
  },
  "hsl": {
    "h": 93.377,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.68681,
    "c": 0.19257,
    "h": 135.5
  },
  "luminance": 0.34757
}

Semantic roles & 50–950 ramp

primary
#5FB31C
secondary
#9B5FCB
accent
#38F09E
background
#F9FCF6
surface
#F2F8EB
border
#CCD1C6
text
#0E1307
muted
#7E827A

Preview Lab

Preview with #5FB31C

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

Preview Lab → · Contrast checker → · Palette generator →

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