#5C871D#5C871D

#5C871D 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#5C871D
RGBrgb(92, 135, 29)
HSLhsl(84, 65%, 32%)
HSVhsv(84, 79%, 53%)
CMYKcmyk(31.9%, 0%, 78.5%, 47.1%)
CIE-LABlab(51.49, -31.31, 48.45)
CIE-LCHlch(51.49, 57.69, 122.88°)
OKLaboklab(57.12% -0.0893 0.1075)
OKLCHoklch(57.12% 0.14 129.7)
XYZxyz(13.2993, 19.6916, 4.2623)
Luminance0.1969 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C871D #481D87
analogous
#877D1D #5C871D #27871D
triadic
#5C871D #1D5C87 #871D5C
tetradic
#5C871D #1D877D #481D87 #871D27
square
#5C871D #1D877D #481D87 #871D27
split-complementary
#5C871D #1D2787 #7D1D87
monochromatic
#172207 #3A5512 #5C871D #7EB928 #9DD747

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C871D#FFFFFF#000000##000000
##5C871D1.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)
#8E7D03
Deuteranopia (green-blind)
#887A28
Tritanopia (blue-blind)
#5F8173
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5c871d;
/* rgb */ color: rgb(92, 135, 29);
/* oklch */ color: oklch(57.1% 0.140 129.7);
Tailwind
colors: {
  custom: {
    50: '#8eaa62',
    500: '#5c871d',
    950: '#000000',
  },
}
SCSS
$custom: #5c871d;
$custom-light: #8eaa62;
$custom-dark: #000000;
JSON
{
  "hex": "#5c871d",
  "rgb": {
    "r": 92,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 84.34,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.57123,
    "c": 0.13973,
    "h": 129.7
  },
  "luminance": 0.19692
}

Semantic roles & 50–950 ramp

primary
#5C871D
secondary
#7546B9
accent
#40E884
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5C871D

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

Preview Lab → · Contrast checker → · Palette generator →

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