#5C7817#5C7817

#5C7817 is a mid, vivid yellow-green. Relative luminance 0.158; OKLCH L 53.2% C 0.124 H 125.0°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#5C7817
RGBrgb(92, 120, 23)
HSLhsl(77, 68%, 28%)
HSVhsv(77, 81%, 47%)
CMYKcmyk(23.3%, 0%, 80.8%, 52.9%)
CIE-LABlab(46.67, -24.39, 45.95)
CIE-LCHlch(46.67, 52.02, 117.96°)
OKLaboklab(53.2% -0.071 0.1012)
OKLCHoklch(53.2% 0.124 125)
XYZxyz(11.2849, 15.7700, 3.2598)
Luminance0.1577 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C7817 #331778
analogous
#786317 #5C7817 #2B7817
triadic
#5C7817 #175C78 #78175C
tetradic
#5C7817 #177863 #331778 #78172B
square
#5C7817 #177863 #331778 #78172B
split-complementary
#5C7817 #172B78 #631778
monochromatic
#141A05 #35450D #5C7817 #83AB21 #A8D832

Accessibility & contrast

On white

5.06
#5C7817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#5C7817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C7817
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C7817#FFFFFF#000000##FFFFFF
##5C78171.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7000
Deuteranopia (green-blind)
#7B6E21
Tritanopia (blue-blind)
#617266
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5c7817;
/* rgb */ color: rgb(92, 120, 23);
/* oklch */ color: oklch(53.2% 0.124 125.0);
Tailwind
colors: {
  custom: {
    50: '#8d9f5d',
    500: '#5c7817',
    950: '#000000',
  },
}
SCSS
$custom: #5c7817;
$custom-light: #8d9f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5c7817",
  "rgb": {
    "r": 92,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 77.32,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.532,
    "c": 0.12358,
    "h": 125
  },
  "luminance": 0.1577
}

Semantic roles & 50–950 ramp

primary
#5C7817
secondary
#5E3EAD
accent
#3DEB6F
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0D0E05
muted
#7D7E79

Preview Lab

Preview with #5C7817

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

Preview Lab → · Contrast checker → · Palette generator →

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