#5C7D17#5C7D17

#5C7D17 is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.5% C 0.130 H 126.7°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#5C7D17
RGBrgb(92, 125, 23)
HSLhsl(79, 69%, 29%)
HSVhsv(79, 82%, 49%)
CMYKcmyk(26.4%, 0%, 81.6%, 51%)
CIE-LABlab(48.27, -26.86, 47.42)
CIE-LCHlch(48.27, 54.50, 119.53°)
OKLaboklab(54.49% -0.0777 0.1043)
OKLCHoklch(54.49% 0.13 126.7)
XYZxyz(11.9020, 17.0042, 3.4655)
Luminance0.1700 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C7D17 #38177D
analogous
#7D6B17 #5C7D17 #297D17
triadic
#5C7D17 #175C7D #7D175C
tetradic
#5C7D17 #177D6B #38177D #7D1729
square
#5C7D17 #177D6B #38177D #7D1729
split-complementary
#5C7D17 #17297D #6B177D
monochromatic
#131A05 #36490D #5C7D17 #82B121 #A4DA35

Accessibility & contrast

On white

4.77
#5C7D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#5C7D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C7D17
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C7D17#FFFFFF#000000##FFFFFF
##5C7D171.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7F7222
Tritanopia (blue-blind)
#60776A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5c7d17;
/* rgb */ color: rgb(92, 125, 23);
/* oklch */ color: oklch(54.5% 0.130 126.7);
Tailwind
colors: {
  custom: {
    50: '#8ea25e',
    500: '#5c7d17',
    950: '#000000',
  },
}
SCSS
$custom: #5c7d17;
$custom-light: #8ea25e;
$custom-dark: #000000;
JSON
{
  "hex": "#5c7d17",
  "rgb": {
    "r": 92,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 79.412,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.54493,
    "c": 0.13003,
    "h": 126.7
  },
  "luminance": 0.17004
}

Semantic roles & 50–950 ramp

primary
#5C7D17
secondary
#633EB2
accent
#3CEC75
background
#F9FAF5
surface
#F1F3E9
border
#CBCDC5
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5C7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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