#4C871B#4C871B

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

Color values

HEX#4C871B
RGBrgb(76, 135, 27)
HSLhsl(93, 67%, 32%)
HSVhsv(93, 80%, 53%)
CMYKcmyk(43.7%, 0%, 80%, 47.1%)
CIE-LABlab(50.62, -37.43, 48.00)
CIE-LCHlch(50.62, 60.86, 127.95°)
OKLaboklab(56.18% -0.1049 0.1065)
OKLCHoklch(56.18% 0.15 134.6)
XYZxyz(11.8421, 18.9429, 4.0691)
Luminance0.1894 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C871B #561B87
analogous
#82871B #4C871B #1B8720
triadic
#4C871B #1B4C87 #871B4C
tetradic
#4C871B #1B8287 #561B87 #87201B
square
#4C871B #1B8287 #561B87 #87201B
split-complementary
#4C871B #201B87 #871B82
monochromatic
#132107 #2F5411 #4C871B #69BA25 #87D943

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C871B#FFFFFF#000000##000000
##4C871B1.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)
#8C7C00
Deuteranopia (green-blind)
#847727
Tritanopia (blue-blind)
#4B8273
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4c871b;
/* rgb */ color: rgb(76, 135, 27);
/* oklch */ color: oklch(56.2% 0.150 134.6);
Tailwind
colors: {
  custom: {
    50: '#84aa61',
    500: '#4c871b',
    950: '#000000',
  },
}
SCSS
$custom: #4c871b;
$custom-light: #84aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#4c871b",
  "rgb": {
    "r": 76,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 92.778,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.56182,
    "c": 0.14952,
    "h": 134.6
  },
  "luminance": 0.18944
}

Semantic roles & 50–950 ramp

primary
#4C871B
secondary
#8444BA
accent
#3EEA9C
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #4C871B

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

Preview Lab → · Contrast checker → · Palette generator →

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