#5F971C#5F971C

#5F971C is a mid, vivid yellow-green. Relative luminance 0.246; OKLCH L 61.4% C 0.159 H 131.9°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#5F971C
RGBrgb(95, 151, 28)
HSLhsl(87, 69%, 35%)
HSVhsv(87, 81%, 59%)
CMYKcmyk(37.1%, 0%, 81.5%, 40.8%)
CIE-LABlab(56.73, -37.45, 53.72)
CIE-LCHlch(56.73, 65.48, 124.88°)
OKLaboklab(61.45% -0.1062 0.1183)
OKLCHoklch(61.45% 0.159 131.9)
XYZxyz(15.9954, 24.6493, 5.0134)
Luminance0.2465 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F971C #541C97
analogous
#97911C #5F971C #22971C
triadic
#5F971C #1C5F97 #971C5F
tetradic
#5F971C #1C9791 #541C97 #971C22
square
#5F971C #1C9791 #541C97 #971C22
split-complementary
#5F971C #1C2297 #911C97
monochromatic
#1E3009 #3F6312 #5F971C #7FCB26 #9DDE4F

Accessibility & contrast

On white

3.54
#5F971C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#5F971C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F971C
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F971C#FFFFFF#000000##000000
##5F971C1.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8B00
Deuteranopia (green-blind)
#96872A
Tritanopia (blue-blind)
#609081
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5f971c;
/* rgb */ color: rgb(95, 151, 28);
/* oklch */ color: oklch(61.4% 0.159 131.9);
Tailwind
colors: {
  custom: {
    50: '#92b664',
    500: '#5f971c',
    950: '#000000',
  },
}
SCSS
$custom: #5f971c;
$custom-light: #92b664;
$custom-dark: #000000;
JSON
{
  "hex": "#5f971c",
  "rgb": {
    "r": 95,
    "g": 151,
    "b": 28
  },
  "hsl": {
    "h": 87.317,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.61445,
    "c": 0.15895,
    "h": 131.9
  },
  "luminance": 0.2465
}

Semantic roles & 50–950 ramp

primary
#5F971C
secondary
#824EC1
accent
#3CEC8C
background
#F9FBF6
surface
#F2F6EB
border
#CCD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5F971C

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

Preview Lab → · Contrast checker → · Palette generator →

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