#5E981F#5E981F

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

Color values

HEX#5E981F
RGBrgb(94, 152, 31)
HSLhsl(89, 66%, 36%)
HSVhsv(89, 80%, 60%)
CMYKcmyk(38.2%, 0%, 79.6%, 40.4%)
CIE-LABlab(57.01, -38.10, 53.04)
CIE-LCHlch(57.01, 65.30, 125.69°)
OKLaboklab(61.66% -0.1077 0.1174)
OKLCHoklch(61.66% 0.159 132.5)
XYZxyz(16.0914, 24.9344, 5.2610)
Luminance0.2493 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E981F #591F98
analogous
#98951F #5E981F #22981F
triadic
#5E981F #1F5E98 #981F5E
tetradic
#5E981F #1F9895 #591F98 #981F22
square
#5E981F #1F9895 #591F98 #981F22
split-complementary
#5E981F #1F2298 #951F98
monochromatic
#1F320A #3F6515 #5E981F #7DCB29 #9BDC55

Accessibility & contrast

On white

3.51
#5E981F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#5E981F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5E981F
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E981F#FFFFFF#000000##000000
##5E981F1.003.515.995.99
#FFFFFF3.511.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e981f;
/* rgb */ color: rgb(94, 152, 31);
/* oklch */ color: oklch(61.7% 0.159 132.5);
Tailwind
colors: {
  custom: {
    50: '#91b765',
    500: '#5e981f',
    950: '#000000',
  },
}
SCSS
$custom: #5e981f;
$custom-light: #91b765;
$custom-dark: #000000;
JSON
{
  "hex": "#5e981f",
  "rgb": {
    "r": 94,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 88.76,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.61664,
    "c": 0.15926,
    "h": 132.5
  },
  "luminance": 0.24935
}

Semantic roles & 50–950 ramp

primary
#5E981F
secondary
#8753C0
accent
#3FE990
background
#F9FBF6
surface
#F2F6EB
border
#CCD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5E981F

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

Preview Lab → · Contrast checker → · Palette generator →

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