#5C7815#5C7815

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

Color values

HEX#5C7815
RGBrgb(92, 120, 21)
HSLhsl(77, 70%, 28%)
HSVhsv(77, 83%, 47%)
CMYKcmyk(23.3%, 0%, 82.5%, 52.9%)
CIE-LABlab(46.66, -24.48, 46.59)
CIE-LCHlch(46.66, 52.63, 117.72°)
OKLaboklab(53.19% -0.0714 0.1022)
OKLCHoklch(53.19% 0.125 124.9)
XYZxyz(11.2656, 15.7623, 3.1582)
Luminance0.1576 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C7815 #311578
analogous
#786315 #5C7815 #2A7815
triadic
#5C7815 #155C78 #78155C
tetradic
#5C7815 #157863 #311578 #78152A
square
#5C7815 #157863 #311578 #78152A
split-complementary
#5C7815 #152A78 #631578
monochromatic
#141A05 #34440C #5C7815 #84AC1E #A9DA2D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C7815#FFFFFF#000000##FFFFFF
##5C78151.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)
#7B6E1F
Tritanopia (blue-blind)
#617266
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5c7815;
/* rgb */ color: rgb(92, 120, 21);
/* oklch */ color: oklch(53.2% 0.125 124.9);
Tailwind
colors: {
  custom: {
    50: '#8e9f5c',
    500: '#5c7815',
    950: '#000000',
  },
}
SCSS
$custom: #5c7815;
$custom-light: #8e9f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5c7815",
  "rgb": {
    "r": 92,
    "g": 120,
    "b": 21
  },
  "hsl": {
    "h": 76.97,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.53189,
    "c": 0.12463,
    "h": 124.9
  },
  "luminance": 0.15762
}

Semantic roles & 50–950 ramp

primary
#5C7815
secondary
#5C3BAE
accent
#3BED6D
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0D0E04
muted
#7D7E79

Preview Lab

Preview with #5C7815

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

Preview Lab → · Contrast checker → · Palette generator →

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