#5D8018#5D8018

#5D8018 is a mid, vivid yellow-green. Relative luminance 0.178; OKLCH L 55.3% C 0.133 H 127.2°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#5D8018
RGBrgb(93, 128, 24)
HSLhsl(80, 68%, 30%)
HSVhsv(80, 81%, 50%)
CMYKcmyk(27.3%, 0%, 81.3%, 49.8%)
CIE-LABlab(49.29, -27.85, 48.07)
CIE-LCHlch(49.29, 55.55, 120.09°)
OKLaboklab(55.34% -0.0804 0.1058)
OKLCHoklch(55.34% 0.133 127.2)
XYZxyz(12.3983, 17.8312, 3.6525)
Luminance0.1783 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D8018 #3B1880
analogous
#806F18 #5D8018 #298018
triadic
#5D8018 #185D80 #80185D
tetradic
#5D8018 #18806F #3B1880 #801829
square
#5D8018 #18806F #3B1880 #801829
split-complementary
#5D8018 #182980 #6F1880
monochromatic
#131A05 #384C0E #5D8018 #82B422 #A4DA39

Accessibility & contrast

On white

4.60
#5D8018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#5D8018 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5D8018
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D8018#FFFFFF#000000##FFFFFF
##5D80181.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#827423
Tritanopia (blue-blind)
#617A6D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5d8018;
/* rgb */ color: rgb(93, 128, 24);
/* oklch */ color: oklch(55.3% 0.133 127.2);
Tailwind
colors: {
  custom: {
    50: '#8fa55f',
    500: '#5d8018',
    950: '#000000',
  },
}
SCSS
$custom: #5d8018;
$custom-light: #8fa55f;
$custom-dark: #000000;
JSON
{
  "hex": "#5d8018",
  "rgb": {
    "r": 93,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 80.192,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.55344,
    "c": 0.13285,
    "h": 127.2
  },
  "luminance": 0.17831
}

Semantic roles & 50–950 ramp

primary
#5D8018
secondary
#6740B4
accent
#3DEB77
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5D8018

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

Preview Lab → · Contrast checker → · Palette generator →

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