#4C871F#4C871F

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

Color values

HEX#4C871F
RGBrgb(76, 135, 31)
HSLhsl(94, 63%, 33%)
HSVhsv(94, 77%, 53%)
CMYKcmyk(43.7%, 0%, 77%, 47.1%)
CIE-LABlab(50.64, -37.18, 46.64)
CIE-LCHlch(50.64, 59.65, 128.56°)
OKLaboklab(56.21% -0.104 0.1043)
OKLCHoklch(56.21% 0.147 134.9)
XYZxyz(11.8915, 18.9627, 4.3296)
Luminance0.1896 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C871F #5A1F87
analogous
#80871F #4C871F #1F8726
triadic
#4C871F #1F4C87 #871F4C
tetradic
#4C871F #1F8087 #5A1F87 #87261F
square
#4C871F #1F8087 #5A1F87 #87261F
split-complementary
#4C871F #261F87 #871F80
monochromatic
#142308 #305514 #4C871F #68B92A #87D64B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C871F#FFFFFF#000000##000000
##4C871F1.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)
#8C7C08
Deuteranopia (green-blind)
#84772A
Tritanopia (blue-blind)
#4B8273
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4c871f;
/* rgb */ color: rgb(76, 135, 31);
/* oklch */ color: oklch(56.2% 0.147 134.9);
Tailwind
colors: {
  custom: {
    50: '#84aa63',
    500: '#4c871f',
    950: '#000000',
  },
}
SCSS
$custom: #4c871f;
$custom-light: #84aa63;
$custom-dark: #000000;
JSON
{
  "hex": "#4c871f",
  "rgb": {
    "r": 76,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 94.038,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56208,
    "c": 0.14729,
    "h": 134.9
  },
  "luminance": 0.18963
}

Semantic roles & 50–950 ramp

primary
#4C871F
secondary
#884AB8
accent
#42E69F
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4C871F

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

Preview Lab → · Contrast checker → · Palette generator →

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