#4C871A#4C871A

#4C871A is a mid, vivid yellow-green. Relative luminance 0.189; OKLCH L 56.2% C 0.150 H 134.5°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#4C871A
RGBrgb(76, 135, 26)
HSLhsl(92, 68%, 32%)
HSVhsv(92, 81%, 53%)
CMYKcmyk(43.7%, 0%, 80.7%, 47.1%)
CIE-LABlab(50.62, -37.49, 48.32)
CIE-LCHlch(50.62, 61.15, 127.81°)
OKLaboklab(56.18% -0.1051 0.107)
OKLCHoklch(56.18% 0.15 134.5)
XYZxyz(11.8307, 18.9384, 4.0092)
Luminance0.1894 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C871A #551A87
analogous
#83871A #4C871A #1A871F
triadic
#4C871A #1A4C87 #871A4C
tetradic
#4C871A #1A8387 #551A87 #871F1A
square
#4C871A #1A8387 #551A87 #871F1A
split-complementary
#4C871A #1F1A87 #871A83
monochromatic
#122006 #2F5410 #4C871A #69BA24 #87DA41

Accessibility & contrast

On white

4.39
#4C871A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#4C871A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C871A
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C871A#FFFFFF#000000##000000
##4C871A1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#857726
Tritanopia (blue-blind)
#4B8273
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4c871a;
/* rgb */ color: rgb(76, 135, 26);
/* oklch */ color: oklch(56.2% 0.150 134.5);
Tailwind
colors: {
  custom: {
    50: '#84aa60',
    500: '#4c871a',
    950: '#000000',
  },
}
SCSS
$custom: #4c871a;
$custom-light: #84aa60;
$custom-dark: #000000;
JSON
{
  "hex": "#4c871a",
  "rgb": {
    "r": 76,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 92.477,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56176,
    "c": 0.15005,
    "h": 134.5
  },
  "luminance": 0.18939
}

Semantic roles & 50–950 ramp

primary
#4C871A
secondary
#8342BA
accent
#3DEB9B
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #4C871A

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

Preview Lab → · Contrast checker → · Palette generator →

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