#5C871B#5C871B

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

Color values

HEX#5C871B
RGBrgb(92, 135, 27)
HSLhsl(84, 67%, 32%)
HSVhsv(84, 80%, 53%)
CMYKcmyk(31.9%, 0%, 80%, 47.1%)
CIE-LABlab(51.48, -31.42, 49.10)
CIE-LCHlch(51.48, 58.30, 122.61°)
OKLaboklab(57.11% -0.0898 0.1085)
OKLCHoklch(57.11% 0.141 129.6)
XYZxyz(13.2754, 19.6820, 4.1363)
Luminance0.1968 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C871B #461B87
analogous
#877C1B #5C871B #26871B
triadic
#5C871B #1B5C87 #871B5C
tetradic
#5C871B #1B877C #461B87 #871B26
square
#5C871B #1B877C #461B87 #871B26
split-complementary
#5C871B #1B2687 #7C1B87
monochromatic
#162107 #395411 #5C871B #7FBA25 #9ED943

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C871B#FFFFFF#000000##000000
##5C871B1.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)
#887A26
Tritanopia (blue-blind)
#5F8173
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5c871b;
/* rgb */ color: rgb(92, 135, 27);
/* oklch */ color: oklch(57.1% 0.141 129.6);
Tailwind
colors: {
  custom: {
    50: '#8eaa61',
    500: '#5c871b',
    950: '#000000',
  },
}
SCSS
$custom: #5c871b;
$custom-light: #8eaa61;
$custom-dark: #000000;
JSON
{
  "hex": "#5c871b",
  "rgb": {
    "r": 92,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 83.889,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.57111,
    "c": 0.14082,
    "h": 129.6
  },
  "luminance": 0.19682
}

Semantic roles & 50–950 ramp

primary
#5C871B
secondary
#7344BA
accent
#3EEA82
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5C871B

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

Preview Lab → · Contrast checker → · Palette generator →

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