#5C871C#5C871C

#5C871C is a mid, vivid yellow-green. Relative luminance 0.197; OKLCH L 57.1% C 0.140 H 129.7°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#5C871C
RGBrgb(92, 135, 28)
HSLhsl(84, 66%, 32%)
HSVhsv(84, 79%, 53%)
CMYKcmyk(31.9%, 0%, 79.3%, 47.1%)
CIE-LABlab(51.48, -31.37, 48.78)
CIE-LCHlch(51.48, 58.00, 122.74°)
OKLaboklab(57.12% -0.0895 0.108)
OKLCHoklch(57.12% 0.14 129.7)
XYZxyz(13.2872, 19.6867, 4.1982)
Luminance0.1969 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C871C #471C87
analogous
#877D1C #5C871C #27871C
triadic
#5C871C #1C5C87 #871C5C
tetradic
#5C871C #1C877D #471C87 #871C27
square
#5C871C #1C877D #471C87 #871C27
split-complementary
#5C871C #1C2787 #7D1C87
monochromatic
#172207 #395411 #5C871C #7FBA27 #9DD845

Accessibility & contrast

On white

4.25
#5C871C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#5C871C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5C871C
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C871C#FFFFFF#000000##000000
##5C871C1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#887A27
Tritanopia (blue-blind)
#5F8173
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5c871c;
/* rgb */ color: rgb(92, 135, 28);
/* oklch */ color: oklch(57.1% 0.140 129.7);
Tailwind
colors: {
  custom: {
    50: '#8eaa62',
    500: '#5c871c',
    950: '#000000',
  },
}
SCSS
$custom: #5c871c;
$custom-light: #8eaa62;
$custom-dark: #000000;
JSON
{
  "hex": "#5c871c",
  "rgb": {
    "r": 92,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 84.112,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.57117,
    "c": 0.14028,
    "h": 129.7
  },
  "luminance": 0.19687
}

Semantic roles & 50–950 ramp

primary
#5C871C
secondary
#7445BA
accent
#3FE983
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5C871C

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

Preview Lab → · Contrast checker → · Palette generator →

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