#5C8018#5C8018

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

Color values

HEX#5C8018
RGBrgb(92, 128, 24)
HSLhsl(81, 68%, 30%)
HSVhsv(81, 81%, 50%)
CMYKcmyk(28.1%, 0%, 81.3%, 49.8%)
CIE-LABlab(49.23, -28.26, 47.99)
CIE-LCHlch(49.23, 55.69, 120.50°)
OKLaboklab(55.28% -0.0814 0.1056)
OKLCHoklch(55.28% 0.133 127.6)
XYZxyz(12.2977, 17.7793, 3.6478)
Luminance0.1778 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C8018 #3C1880
analogous
#807018 #5C8018 #288018
triadic
#5C8018 #185C80 #80185C
tetradic
#5C8018 #188070 #3C1880 #801828
square
#5C8018 #188070 #3C1880 #801828
split-complementary
#5C8018 #182880 #701880
monochromatic
#131A05 #374C0E #5C8018 #81B422 #A2DA39

Accessibility & contrast

On white

4.61
#5C8018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#5C8018 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5C8018
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C8018#FFFFFF#000000##FFFFFF
##5C80181.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c8018;
/* rgb */ color: rgb(92, 128, 24);
/* oklch */ color: oklch(55.3% 0.133 127.6);
Tailwind
colors: {
  custom: {
    50: '#8ea55f',
    500: '#5c8018',
    950: '#000000',
  },
}
SCSS
$custom: #5c8018;
$custom-light: #8ea55f;
$custom-dark: #000000;
JSON
{
  "hex": "#5c8018",
  "rgb": {
    "r": 92,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 80.769,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.55276,
    "c": 0.13338,
    "h": 127.6
  },
  "luminance": 0.1778
}

Semantic roles & 50–950 ramp

primary
#5C8018
secondary
#6840B4
accent
#3DEB79
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5C8018

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

Preview Lab → · Contrast checker → · Palette generator →

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