#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 |
|---|---|
| RGB | rgb(76, 135, 31) |
| HSL | hsl(94, 63%, 33%) |
| HSV | hsv(94, 77%, 53%) |
| CMYK | cmyk(43.7%, 0%, 77%, 47.1%) |
| CIE-LAB | lab(50.64, -37.18, 46.64) |
| CIE-LCH | lch(50.64, 59.65, 128.56°) |
| OKLab | oklab(56.21% -0.104 0.1043) |
| OKLCH | oklch(56.21% 0.147 134.9) |
| XYZ | xyz(11.8915, 18.9627, 4.3296) |
| Luminance | 0.1896 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Sap Green
#5C8B15
ΔE00 3.62
Dark Grass Green
#388004
ΔE00 3.70
Avocado
#568203
ΔE00 3.87
Mossy Green
#638B27
ΔE00 4.09
Moss Green (survey)
#658B38
ΔE00 4.73
Forestgreen (CSS)
#228B22
ΔE00 4.90
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 |
|---|---|---|---|---|
| ##4C871F | 1.00 | 4.38 | 4.79 | 4.79 |
| #FFFFFF | 4.38 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.79 | 21.00 | 1.00 | 1.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