#5D981C#5D981C

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

Color values

HEX#5D981C
RGBrgb(93, 152, 28)
HSLhsl(89, 69%, 35%)
HSVhsv(89, 82%, 60%)
CMYKcmyk(38.8%, 0%, 81.6%, 40.4%)
CIE-LABlab(56.95, -38.62, 53.87)
CIE-LCHlch(56.95, 66.29, 125.64°)
OKLaboklab(61.59% -0.1092 0.1187)
OKLCHoklch(61.59% 0.161 132.6)
XYZxyz(15.9518, 24.8667, 5.0576)
Luminance0.2487 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D981C #571C98
analogous
#98951C #5D981C #1F981C
triadic
#5D981C #1C5D98 #981C5D
tetradic
#5D981C #1C9895 #571C98 #981C1F
square
#5D981C #1C9895 #571C98 #981C1F
split-complementary
#5D981C #1C1F98 #951C98
monochromatic
#1E3109 #3D6412 #5D981C #7DCC26 #9BDF50

Accessibility & contrast

On white

3.52
#5D981C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D981C#FFFFFF#000000##000000
##5D981C1.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d981c;
/* rgb */ color: rgb(93, 152, 28);
/* oklch */ color: oklch(61.6% 0.161 132.6);
Tailwind
colors: {
  custom: {
    50: '#90b764',
    500: '#5d981c',
    950: '#000000',
  },
}
SCSS
$custom: #5d981c;
$custom-light: #90b764;
$custom-dark: #000000;
JSON
{
  "hex": "#5d981c",
  "rgb": {
    "r": 93,
    "g": 152,
    "b": 28
  },
  "hsl": {
    "h": 88.548,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.61592,
    "c": 0.16125,
    "h": 132.6
  },
  "luminance": 0.24867
}

Semantic roles & 50–950 ramp

primary
#5D981C
secondary
#854EC1
accent
#3CEC90
background
#F9FBF6
surface
#F2F6EB
border
#CCD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5D981C

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

Preview Lab → · Contrast checker → · Palette generator →

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