#4C8E1F#4C8E1F
#4C8E1F is a mid, vivid yellow-green. Relative luminance 0.210; OKLCH L 58.1% C 0.156 H 135.8°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).
Color values
| HEX | #4C8E1F |
|---|---|
| RGB | rgb(76, 142, 31) |
| HSL | hsl(96, 64%, 34%) |
| HSV | hsv(96, 78%, 56%) |
| CMYK | cmyk(46.5%, 0%, 78.2%, 44.3%) |
| CIE-LAB | lab(52.93, -40.15, 48.85) |
| CIE-LCH | lch(52.93, 63.23, 129.41°) |
| OKLab | oklab(58.08% -0.112 0.1089) |
| OKLCH | oklch(58.08% 0.156 135.8) |
| XYZ | xyz(12.9005, 20.9806, 4.6660) |
| Luminance | 0.2098 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Sap Green
#5C8B15
ΔE00 3.40
Mossy Green
#638B27
ΔE00 4.04
Grass Green
#3F9B0B
ΔE00 4.73
Forestgreen (CSS)
#228B22
ΔE00 4.84
Moss Green (survey)
#658B38
ΔE00 4.85
True Green
#089404
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C8E1F #611F8E
analogous
#848E1F #4C8E1F #1F8E2A
triadic
#4C8E1F #1F4C8E #8E1F4C
tetradic
#4C8E1F #1F848E #611F8E #8E2A1F
square
#4C8E1F #1F848E #611F8E #8E2A1F
split-complementary
#4C8E1F #2A1F8E #8E1F84
monochromatic
#162A09 #315C14 #4C8E1F #67C02A #87D94F
Accessibility & contrast
On white
4.04
#4C8E1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.20
#4C8E1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #4C8E1F
5.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C8E1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##4C8E1F | 1.00 | 4.04 | 5.20 | 5.20 |
| #FFFFFF | 4.04 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.20 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.20 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#938204
Deuteranopia (green-blind)
#8B7C2B
Tritanopia (blue-blind)
#498879
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #4c8e1f; /* rgb */ color: rgb(76, 142, 31); /* oklch */ color: oklch(58.1% 0.156 135.8);
Tailwind
colors: {
custom: {
50: '#84af64',
500: '#4c8e1f',
950: '#000000',
},
}SCSS
$custom: #4c8e1f; $custom-light: #84af64; $custom-dark: #000000;
JSON
{
"hex": "#4c8e1f",
"rgb": {
"r": 76,
"g": 142,
"b": 31
},
"hsl": {
"h": 95.676,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.58083,
"c": 0.15623,
"h": 135.8
},
"luminance": 0.20981
}Semantic roles & 50–950 ramp
primary
#4C8E1F
secondary
#8F4DBB
accent
#41E7A4
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0B1006
muted
#7C7F7A