#5D981F#5D981F

#5D981F is a mid, vivid yellow-green. Relative luminance 0.249; OKLCH L 61.6% C 0.160 H 132.8°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#5D981F
RGBrgb(93, 152, 31)
HSLhsl(89, 66%, 36%)
HSVhsv(89, 80%, 60%)
CMYKcmyk(38.8%, 0%, 79.6%, 40.4%)
CIE-LABlab(56.96, -38.47, 52.97)
CIE-LCHlch(56.96, 65.46, 125.99°)
OKLaboklab(61.61% -0.1086 0.1172)
OKLCHoklch(61.61% 0.16 132.8)
XYZxyz(15.9895, 24.8818, 5.2562)
Luminance0.2488 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D981F #5A1F98
analogous
#98961F #5D981F #21981F
triadic
#5D981F #1F5D98 #981F5D
tetradic
#5D981F #1F9896 #5A1F98 #981F21
square
#5D981F #1F9896 #5A1F98 #981F21
split-complementary
#5D981F #1F2198 #961F98
monochromatic
#1F320A #3E6515 #5D981F #7CCB29 #9ADC55

Accessibility & contrast

On white

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

On black

5.98
#5D981F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5D981F
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D981F#FFFFFF#000000##000000
##5D981F1.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d981f;
/* rgb */ color: rgb(93, 152, 31);
/* oklch */ color: oklch(61.6% 0.160 132.8);
Tailwind
colors: {
  custom: {
    50: '#90b765',
    500: '#5d981f',
    950: '#000000',
  },
}
SCSS
$custom: #5d981f;
$custom-light: #90b765;
$custom-dark: #000000;
JSON
{
  "hex": "#5d981f",
  "rgb": {
    "r": 93,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 89.256,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.61609,
    "c": 0.15979,
    "h": 132.8
  },
  "luminance": 0.24883
}

Semantic roles & 50–950 ramp

primary
#5D981F
secondary
#8853C0
accent
#3FE992
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5D981F

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

Preview Lab → · Contrast checker → · Palette generator →

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