#5D8418#5D8418

#5D8418 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#5D8418
RGBrgb(93, 132, 24)
HSLhsl(82, 69%, 31%)
HSVhsv(82, 82%, 52%)
CMYKcmyk(29.5%, 0%, 81.8%, 48.2%)
CIE-LABlab(50.56, -29.76, 49.24)
CIE-LCHlch(50.56, 57.53, 121.15°)
OKLaboklab(56.38% -0.0855 0.1083)
OKLCHoklch(56.38% 0.138 128.3)
XYZxyz(12.9303, 18.8953, 3.8299)
Luminance0.1890 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D8418 #3F1884
analogous
#847518 #5D8418 #278418
triadic
#5D8418 #185D84 #84185D
tetradic
#5D8418 #188475 #3F1884 #841827
square
#5D8418 #188475 #3F1884 #841827
split-complementary
#5D8418 #182784 #751884
monochromatic
#141C05 #39500F #5D8418 #81B821 #A1DB3B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D8418#FFFFFF#000000##000000
##5D84181.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)
#867824
Tritanopia (blue-blind)
#607E70
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5d8418;
/* rgb */ color: rgb(93, 132, 24);
/* oklch */ color: oklch(56.4% 0.138 128.3);
Tailwind
colors: {
  custom: {
    50: '#8fa85f',
    500: '#5d8418',
    950: '#000000',
  },
}
SCSS
$custom: #5d8418;
$custom-light: #8fa85f;
$custom-dark: #000000;
JSON
{
  "hex": "#5d8418",
  "rgb": {
    "r": 93,
    "g": 132,
    "b": 24
  },
  "hsl": {
    "h": 81.667,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.5638,
    "c": 0.13797,
    "h": 128.3
  },
  "luminance": 0.18896
}

Semantic roles & 50–950 ramp

primary
#5D8418
secondary
#6B40B8
accent
#3CEC7B
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5D8418

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

Preview Lab → · Contrast checker → · Palette generator →

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