#5C871A#5C871A

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

Color values

HEX#5C871A
RGBrgb(92, 135, 26)
HSLhsl(84, 68%, 32%)
HSVhsv(84, 81%, 53%)
CMYKcmyk(31.9%, 0%, 80.7%, 47.1%)
CIE-LABlab(51.47, -31.47, 49.42)
CIE-LCHlch(51.47, 58.59, 122.49°)
OKLaboklab(57.11% -0.09 0.109)
OKLCHoklch(57.11% 0.141 129.5)
XYZxyz(13.2640, 19.6774, 4.0764)
Luminance0.1968 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C871A #451A87
analogous
#877C1A #5C871A #25871A
triadic
#5C871A #1A5C87 #871A5C
tetradic
#5C871A #1A877C #451A87 #871A25
square
#5C871A #1A877C #451A87 #871A25
split-complementary
#5C871A #1A2587 #7C1A87
monochromatic
#162006 #395410 #5C871A #7FBA24 #9EDA41

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C871A#FFFFFF#000000##000000
##5C871A1.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: #5c871a;
/* rgb */ color: rgb(92, 135, 26);
/* oklch */ color: oklch(57.1% 0.141 129.5);
Tailwind
colors: {
  custom: {
    50: '#8eaa61',
    500: '#5c871a',
    950: '#000000',
  },
}
SCSS
$custom: #5c871a;
$custom-light: #8eaa61;
$custom-dark: #000000;
JSON
{
  "hex": "#5c871a",
  "rgb": {
    "r": 92,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 83.67,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.57105,
    "c": 0.14134,
    "h": 129.5
  },
  "luminance": 0.19678
}

Semantic roles & 50–950 ramp

primary
#5C871A
secondary
#7242BA
accent
#3DEB82
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5C871A

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

Preview Lab → · Contrast checker → · Palette generator →

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