#5F981F#5F981F

#5F981F is a mid, vivid yellow-green. Relative luminance 0.250; OKLCH L 61.7% C 0.159 H 132.3°. Best body text is #000000 at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#5F981F
RGBrgb(95, 152, 31)
HSLhsl(88, 66%, 36%)
HSVhsv(88, 80%, 60%)
CMYKcmyk(37.5%, 0%, 79.6%, 40.4%)
CIE-LABlab(57.06, -37.74, 53.10)
CIE-LCHlch(57.06, 65.15, 125.40°)
OKLaboklab(61.72% -0.1067 0.1175)
OKLCHoklch(61.72% 0.159 132.3)
XYZxyz(16.1947, 24.9876, 5.2659)
Luminance0.2499 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F981F #581F98
analogous
#98941F #5F981F #23981F
triadic
#5F981F #1F5F98 #981F5F
tetradic
#5F981F #1F9894 #581F98 #981F23
square
#5F981F #1F9894 #581F98 #981F23
split-complementary
#5F981F #1F2398 #941F98
monochromatic
#1F320A #3F6515 #5F981F #7FCB29 #9DDC55

Accessibility & contrast

On white

3.50
#5F981F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.00
#5F981F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F981F
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F981F#FFFFFF#000000##000000
##5F981F1.003.506.006.00
#FFFFFF3.501.0021.0021.00
#0000006.0021.001.001.00
##0000006.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8C00
Deuteranopia (green-blind)
#97872C
Tritanopia (blue-blind)
#609282
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #5f981f;
/* rgb */ color: rgb(95, 152, 31);
/* oklch */ color: oklch(61.7% 0.159 132.3);
Tailwind
colors: {
  custom: {
    50: '#92b665',
    500: '#5f981f',
    950: '#000000',
  },
}
SCSS
$custom: #5f981f;
$custom-light: #92b665;
$custom-dark: #000000;
JSON
{
  "hex": "#5f981f",
  "rgb": {
    "r": 95,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 88.264,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.61721,
    "c": 0.15872,
    "h": 132.3
  },
  "luminance": 0.24988
}

Semantic roles & 50–950 ramp

primary
#5F981F
secondary
#8653C0
accent
#3FE98F
background
#F9FBF6
surface
#F2F6EB
border
#CCD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5F981F

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

Preview Lab → · Contrast checker → · Palette generator →

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