#5F971A#5F971A

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

Color values

HEX#5F971A
RGBrgb(95, 151, 26)
HSLhsl(87, 71%, 35%)
HSVhsv(87, 83%, 59%)
CMYKcmyk(37.1%, 0%, 82.8%, 40.8%)
CIE-LABlab(56.72, -37.54, 54.29)
CIE-LCHlch(56.72, 66.00, 124.67°)
OKLaboklab(61.43% -0.1065 0.1192)
OKLCHoklch(61.43% 0.16 131.8)
XYZxyz(15.9722, 24.6400, 4.8915)
Luminance0.2464 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F971A #521A97
analogous
#97911A #5F971A #21971A
triadic
#5F971A #1A5F97 #971A5F
tetradic
#5F971A #1A9791 #521A97 #971A21
square
#5F971A #1A9791 #521A97 #971A21
split-complementary
#5F971A #1A2197 #911A97
monochromatic
#1D2F08 #3E6311 #5F971A #80CB23 #9DE04B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F971A#FFFFFF#000000##000000
##5F971A1.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)
#609080
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5f971a;
/* rgb */ color: rgb(95, 151, 26);
/* oklch */ color: oklch(61.4% 0.160 131.8);
Tailwind
colors: {
  custom: {
    50: '#92b663',
    500: '#5f971a',
    950: '#000000',
  },
}
SCSS
$custom: #5f971a;
$custom-light: #92b663;
$custom-dark: #000000;
JSON
{
  "hex": "#5f971a",
  "rgb": {
    "r": 95,
    "g": 151,
    "b": 26
  },
  "hsl": {
    "h": 86.88,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.61435,
    "c": 0.15987,
    "h": 131.8
  },
  "luminance": 0.24641
}

Semantic roles & 50–950 ramp

primary
#5F971A
secondary
#804BC2
accent
#3AED8B
background
#F9FBF6
surface
#F2F6EB
border
#CCD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5F971A

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

Preview Lab → · Contrast checker → · Palette generator →

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