#4C871D#4C871D

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

Color values

HEX#4C871D
RGBrgb(76, 135, 29)
HSLhsl(93, 65%, 32%)
HSVhsv(93, 79%, 53%)
CMYKcmyk(43.7%, 0%, 78.5%, 47.1%)
CIE-LABlab(50.63, -37.31, 47.33)
CIE-LCHlch(50.63, 60.27, 128.25°)
OKLaboklab(56.19% -0.1045 0.1055)
OKLCHoklch(56.19% 0.148 134.7)
XYZxyz(11.8660, 18.9525, 4.1951)
Luminance0.1895 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C871D #581D87
analogous
#81871D #4C871D #1D8723
triadic
#4C871D #1D4C87 #871D4C
tetradic
#4C871D #1D8187 #581D87 #87231D
square
#4C871D #1D8187 #581D87 #87231D
split-complementary
#4C871D #231D87 #871D81
monochromatic
#132207 #305512 #4C871D #68B928 #87D747

Accessibility & contrast

On white

4.38
#4C871D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C871D#FFFFFF#000000##000000
##4C871D1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C03
Deuteranopia (green-blind)
#847728
Tritanopia (blue-blind)
#4B8273
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4c871d;
/* rgb */ color: rgb(76, 135, 29);
/* oklch */ color: oklch(56.2% 0.148 134.7);
Tailwind
colors: {
  custom: {
    50: '#84aa62',
    500: '#4c871d',
    950: '#000000',
  },
}
SCSS
$custom: #4c871d;
$custom-light: #84aa62;
$custom-dark: #000000;
JSON
{
  "hex": "#4c871d",
  "rgb": {
    "r": 76,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 93.396,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56195,
    "c": 0.14844,
    "h": 134.7
  },
  "luminance": 0.18953
}

Semantic roles & 50–950 ramp

primary
#4C871D
secondary
#8646B9
accent
#40E89D
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #4C871D

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

Preview Lab → · Contrast checker → · Palette generator →

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