#5F971B#5F971B

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

Color values

HEX#5F971B
RGBrgb(95, 151, 27)
HSLhsl(87, 70%, 35%)
HSVhsv(87, 82%, 59%)
CMYKcmyk(37.1%, 0%, 82.1%, 40.8%)
CIE-LABlab(56.73, -37.50, 54.01)
CIE-LCHlch(56.73, 65.75, 124.77°)
OKLaboklab(61.44% -0.1063 0.1188)
OKLCHoklch(61.44% 0.159 131.8)
XYZxyz(15.9836, 24.6446, 4.9514)
Luminance0.2465 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F971B #531B97
analogous
#97911B #5F971B #21971B
triadic
#5F971B #1B5F97 #971B5F
tetradic
#5F971B #1B9791 #531B97 #971B21
square
#5F971B #1B9791 #531B97 #971B21
split-complementary
#5F971B #1B2197 #911B97
monochromatic
#1E2F08 #3E6312 #5F971B #80CB24 #9DDF4D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F971B#FFFFFF#000000##000000
##5F971B1.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)
#968729
Tritanopia (blue-blind)
#609081
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5f971b;
/* rgb */ color: rgb(95, 151, 27);
/* oklch */ color: oklch(61.4% 0.159 131.8);
Tailwind
colors: {
  custom: {
    50: '#92b664',
    500: '#5f971b',
    950: '#000000',
  },
}
SCSS
$custom: #5f971b;
$custom-light: #92b664;
$custom-dark: #000000;
JSON
{
  "hex": "#5f971b",
  "rgb": {
    "r": 95,
    "g": 151,
    "b": 27
  },
  "hsl": {
    "h": 87.097,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.6144,
    "c": 0.15941,
    "h": 131.8
  },
  "luminance": 0.24645
}

Semantic roles & 50–950 ramp

primary
#5F971B
secondary
#814CC1
accent
#3BEC8B
background
#F9FBF6
surface
#F2F6EB
border
#CCD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5F971B

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

Preview Lab → · Contrast checker → · Palette generator →

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