#5D981D#5D981D

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

Color values

HEX#5D981D
RGBrgb(93, 152, 29)
HSLhsl(89, 68%, 35%)
HSVhsv(89, 81%, 60%)
CMYKcmyk(38.8%, 0%, 80.9%, 40.4%)
CIE-LABlab(56.95, -38.57, 53.58)
CIE-LCHlch(56.95, 66.02, 125.75°)
OKLaboklab(61.6% -0.109 0.1182)
OKLCHoklch(61.6% 0.161 132.7)
XYZxyz(15.9640, 24.8716, 5.1217)
Luminance0.2487 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D981D #581D98
analogous
#98951D #5D981D #20981D
triadic
#5D981D #1D5D98 #981D5D
tetradic
#5D981D #1D9895 #581D98 #981D20
square
#5D981D #1D9895 #581D98 #981D20
split-complementary
#5D981D #1D2098 #951D98
monochromatic
#1E3109 #3E6513 #5D981D #7CCB27 #9BDE52

Accessibility & contrast

On white

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

On black

5.97
#5D981D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5D981D
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D981D#FFFFFF#000000##000000
##5D981D1.003.515.975.97
#FFFFFF3.511.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d981d;
/* rgb */ color: rgb(93, 152, 29);
/* oklch */ color: oklch(61.6% 0.161 132.7);
Tailwind
colors: {
  custom: {
    50: '#90b764',
    500: '#5d981d',
    950: '#000000',
  },
}
SCSS
$custom: #5d981d;
$custom-light: #90b764;
$custom-dark: #000000;
JSON
{
  "hex": "#5d981d",
  "rgb": {
    "r": 93,
    "g": 152,
    "b": 29
  },
  "hsl": {
    "h": 88.78,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.61597,
    "c": 0.16079,
    "h": 132.7
  },
  "luminance": 0.24872
}

Semantic roles & 50–950 ramp

primary
#5D981D
secondary
#8650C1
accent
#3DEB90
background
#F9FBF6
surface
#F2F6EB
border
#CCD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5D981D

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

Preview Lab → · Contrast checker → · Palette generator →

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