#5D8D1F#5D8D1F

#5D8D1F is a mid, vivid yellow-green. Relative luminance 0.215; OKLCH L 58.8% C 0.146 H 130.8°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#5D8D1F
RGBrgb(93, 141, 31)
HSLhsl(86, 64%, 34%)
HSVhsv(86, 78%, 55%)
CMYKcmyk(34%, 0%, 78%, 44.7%)
CIE-LABlab(53.47, -33.58, 49.67)
CIE-LCHlch(53.47, 59.95, 124.06°)
OKLaboklab(58.76% -0.0954 0.1103)
OKLCHoklch(58.76% 0.146 130.8)
XYZxyz(14.2863, 21.4753, 4.6885)
Luminance0.2148 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D8D1F #4F1F8D
analogous
#8D861F #5D8D1F #268D1F
triadic
#5D8D1F #1F5D8D #8D1F5D
tetradic
#5D8D1F #1F8D86 #4F1F8D #8D1F26
square
#5D8D1F #1F8D86 #4F1F8D #8D1F26
split-complementary
#5D8D1F #1F268D #861F8D
monochromatic
#1B2909 #3C5B14 #5D8D1F #7EBF2A #9CD84E

Accessibility & contrast

On white

3.97
#5D8D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#5D8D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5D8D1F
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D8D1F#FFFFFF#000000##000000
##5D8D1F1.003.975.305.30
#FFFFFF3.971.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#948204
Deuteranopia (green-blind)
#8D7F2A
Tritanopia (blue-blind)
#5F8778
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5d8d1f;
/* rgb */ color: rgb(93, 141, 31);
/* oklch */ color: oklch(58.8% 0.146 130.8);
Tailwind
colors: {
  custom: {
    50: '#8fae64',
    500: '#5d8d1f',
    950: '#000000',
  },
}
SCSS
$custom: #5d8d1f;
$custom-light: #8fae64;
$custom-dark: #000000;
JSON
{
  "hex": "#5d8d1f",
  "rgb": {
    "r": 93,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 86.182,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.58755,
    "c": 0.14582,
    "h": 130.8
  },
  "luminance": 0.21476
}

Semantic roles & 50–950 ramp

primary
#5D8D1F
secondary
#7D4DBB
accent
#41E789
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5D8D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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