#4C871C#4C871C

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

Color values

HEX#4C871C
RGBrgb(76, 135, 28)
HSLhsl(93, 66%, 32%)
HSVhsv(93, 79%, 53%)
CMYKcmyk(43.7%, 0%, 79.3%, 47.1%)
CIE-LABlab(50.63, -37.37, 47.67)
CIE-LCHlch(50.63, 60.57, 128.10°)
OKLaboklab(56.19% -0.1047 0.106)
OKLCHoklch(56.19% 0.149 134.6)
XYZxyz(11.8538, 18.9476, 4.1310)
Luminance0.1895 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C871C #571C87
analogous
#82871C #4C871C #1C8722
triadic
#4C871C #1C4C87 #871C4C
tetradic
#4C871C #1C8287 #571C87 #87221C
square
#4C871C #1C8287 #571C87 #87221C
split-complementary
#4C871C #221C87 #871C82
monochromatic
#132207 #2F5411 #4C871C #69BA27 #87D845

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C871C#FFFFFF#000000##000000
##4C871C1.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)
#8C7C01
Deuteranopia (green-blind)
#847728
Tritanopia (blue-blind)
#4B8273
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4c871c;
/* rgb */ color: rgb(76, 135, 28);
/* oklch */ color: oklch(56.2% 0.149 134.6);
Tailwind
colors: {
  custom: {
    50: '#84aa61',
    500: '#4c871c',
    950: '#000000',
  },
}
SCSS
$custom: #4c871c;
$custom-light: #84aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#4c871c",
  "rgb": {
    "r": 76,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 93.084,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.56188,
    "c": 0.14898,
    "h": 134.6
  },
  "luminance": 0.18948
}

Semantic roles & 50–950 ramp

primary
#4C871C
secondary
#8545BA
accent
#3FE99D
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #4C871C

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

Preview Lab → · Contrast checker → · Palette generator →

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