#4C7D1F#4C7D1F
#4C7D1F is a mid, vivid yellow-green. Relative luminance 0.163; OKLCH L 53.5% C 0.134 H 133.3°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).
Color values
| HEX | #4C7D1F |
|---|---|
| RGB | rgb(76, 125, 31) |
| HSL | hsl(91, 60%, 31%) |
| HSV | hsv(91, 75%, 49%) |
| CMYK | cmyk(39.2%, 0%, 75.2%, 51%) |
| CIE-LAB | lab(47.37, -32.76, 43.41) |
| CIE-LCH | lch(47.37, 54.38, 127.04°) |
| OKLab | oklab(53.53% -0.092 0.0976) |
| OKLCH | oklch(53.53% 0.134 133.3) |
| XYZ | xyz(10.5613, 16.3022, 3.8862) |
| Luminance | 0.1630 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Dark Grass Green
#388004
ΔE00 3.34
Avocado
#568203
ΔE00 4.06
Tree Green
#2A7E19
ΔE00 4.52
Dirty Green
#667E2C
ΔE00 5.29
Swamp
#698339
ΔE00 6.10
Sap Green
#5C8B15
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C7D1F #501F7D
analogous
#7B7D1F #4C7D1F #1F7D21
triadic
#4C7D1F #1F4C7D #7D1F4C
tetradic
#4C7D1F #1F7B7D #501F7D #7D211F
square
#4C7D1F #1F7B7D #501F7D #7D211F
split-complementary
#4C7D1F #211F7D #7D1F7B
monochromatic
#101B07 #2E4C13 #4C7D1F #6AAE2B #88D145
Accessibility & contrast
On white
4.93
#4C7D1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.26
#4C7D1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4C7D1F
4.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C7D1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C7D1F | 1.00 | 4.93 | 4.26 | 4.93 |
| #FFFFFF | 4.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#82730E
Deuteranopia (green-blind)
#7C6F28
Tritanopia (blue-blind)
#4C786B
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #4c7d1f; /* rgb */ color: rgb(76, 125, 31); /* oklch */ color: oklch(53.5% 0.134 133.3);
Tailwind
colors: {
custom: {
50: '#82a361',
500: '#4c7d1f',
950: '#000000',
},
}SCSS
$custom: #4c7d1f; $custom-light: #82a361; $custom-dark: #000000;
JSON
{
"hex": "#4c7d1f",
"rgb": {
"r": 76,
"g": 125,
"b": 31
},
"hsl": {
"h": 91.277,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.53528,
"c": 0.13411,
"h": 133.3
},
"luminance": 0.16303
}Semantic roles & 50–950 ramp
primary
#4C7D1F
secondary
#7E48B0
accent
#44E397
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F05
muted
#7C7F7A