#5C8017#5C8017

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

Color values

HEX#5C8017
RGBrgb(92, 128, 23)
HSLhsl(81, 70%, 30%)
HSVhsv(81, 82%, 50%)
CMYKcmyk(28.1%, 0%, 82%, 49.8%)
CIE-LABlab(49.22, -28.31, 48.30)
CIE-LCHlch(49.22, 55.98, 120.38°)
OKLaboklab(55.27% -0.0816 0.1061)
OKLCHoklch(55.27% 0.134 127.6)
XYZxyz(12.2875, 17.7752, 3.5940)
Luminance0.1778 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C8017 #3B1780
analogous
#806F17 #5C8017 #288017
triadic
#5C8017 #175C80 #80175C
tetradic
#5C8017 #17806F #3B1780 #801728
square
#5C8017 #17806F #3B1780 #801728
split-complementary
#5C8017 #172880 #6F1780
monochromatic
#131A05 #374C0E #5C8017 #81B420 #A3DB36

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C8017#FFFFFF#000000##FFFFFF
##5C80171.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)
#827422
Tritanopia (blue-blind)
#607A6D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5c8017;
/* rgb */ color: rgb(92, 128, 23);
/* oklch */ color: oklch(55.3% 0.134 127.6);
Tailwind
colors: {
  custom: {
    50: '#8ea55e',
    500: '#5c8017',
    950: '#000000',
  },
}
SCSS
$custom: #5c8017;
$custom-light: #8ea55e;
$custom-dark: #000000;
JSON
{
  "hex": "#5c8017",
  "rgb": {
    "r": 92,
    "g": 128,
    "b": 23
  },
  "hsl": {
    "h": 80.571,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.55271,
    "c": 0.13389,
    "h": 127.6
  },
  "luminance": 0.17776
}

Semantic roles & 50–950 ramp

primary
#5C8017
secondary
#673EB4
accent
#3BEC78
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5C8017

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

Preview Lab → · Contrast checker → · Palette generator →

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