#5D8417#5D8417

#5D8417 is a mid, vivid yellow-green. Relative luminance 0.189; OKLCH L 56.4% C 0.138 H 128.3°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5D8417
RGBrgb(93, 132, 23)
HSLhsl(81, 70%, 30%)
HSVhsv(81, 83%, 52%)
CMYKcmyk(29.5%, 0%, 82.6%, 48.2%)
CIE-LABlab(50.56, -29.81, 49.54)
CIE-LCHlch(50.56, 57.81, 121.04°)
OKLaboklab(56.37% -0.0857 0.1087)
OKLCHoklch(56.37% 0.138 128.3)
XYZxyz(12.9201, 18.8912, 3.7761)
Luminance0.1889 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D8417 #3E1784
analogous
#847417 #5D8417 #268417
triadic
#5D8417 #175D84 #84175D
tetradic
#5D8417 #178474 #3E1784 #841726
square
#5D8417 #178474 #3E1784 #841726
split-complementary
#5D8417 #172684 #741784
monochromatic
#141C05 #38500E #5D8417 #82B820 #A2DC39

Accessibility & contrast

On white

4.39
#5D8417 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#5D8417 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5D8417
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D8417#FFFFFF#000000##000000
##5D84171.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#867823
Tritanopia (blue-blind)
#607E70
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5d8417;
/* rgb */ color: rgb(93, 132, 23);
/* oklch */ color: oklch(56.4% 0.138 128.3);
Tailwind
colors: {
  custom: {
    50: '#8fa85f',
    500: '#5d8417',
    950: '#000000',
  },
}
SCSS
$custom: #5d8417;
$custom-light: #8fa85f;
$custom-dark: #000000;
JSON
{
  "hex": "#5d8417",
  "rgb": {
    "r": 93,
    "g": 132,
    "b": 23
  },
  "hsl": {
    "h": 81.468,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.56374,
    "c": 0.13846,
    "h": 128.3
  },
  "luminance": 0.18892
}

Semantic roles & 50–950 ramp

primary
#5D8417
secondary
#6A3FB8
accent
#3BED7B
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5D8417

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

Preview Lab → · Contrast checker → · Palette generator →

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