#5C871F#5C871F

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

Color values

HEX#5C871F
RGBrgb(92, 135, 31)
HSLhsl(85, 63%, 33%)
HSVhsv(85, 77%, 53%)
CMYKcmyk(31.9%, 0%, 77%, 47.1%)
CIE-LABlab(51.50, -31.20, 47.76)
CIE-LCHlch(51.50, 57.05, 123.15°)
OKLaboklab(57.14% -0.0888 0.1063)
OKLCHoklch(57.14% 0.139 129.9)
XYZxyz(13.3249, 19.7018, 4.3968)
Luminance0.1970 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C871F #4A1F87
analogous
#877E1F #5C871F #28871F
triadic
#5C871F #1F5C87 #871F5C
tetradic
#5C871F #1F877E #4A1F87 #871F28
square
#5C871F #1F877E #4A1F87 #871F28
split-complementary
#5C871F #1F2887 #7E1F87
monochromatic
#182308 #3A5514 #5C871F #7EB92A #9CD64B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C871F#FFFFFF#000000##000000
##5C871F1.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)
#8E7D08
Deuteranopia (green-blind)
#887A29
Tritanopia (blue-blind)
#5F8173
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5c871f;
/* rgb */ color: rgb(92, 135, 31);
/* oklch */ color: oklch(57.1% 0.139 129.9);
Tailwind
colors: {
  custom: {
    50: '#8eaa63',
    500: '#5c871f',
    950: '#000000',
  },
}
SCSS
$custom: #5c871f;
$custom-light: #8eaa63;
$custom-dark: #000000;
JSON
{
  "hex": "#5c871f",
  "rgb": {
    "r": 92,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 84.808,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57136,
    "c": 0.13857,
    "h": 129.9
  },
  "luminance": 0.19702
}

Semantic roles & 50–950 ramp

primary
#5C871F
secondary
#774AB8
accent
#42E686
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5C871F

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

Preview Lab → · Contrast checker → · Palette generator →

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