#4F7C1F#4F7C1F
#4F7C1F is a mid, vivid yellow-green. Relative luminance 0.162; OKLCH L 53.4% C 0.131 H 132.1°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #4F7C1F |
|---|---|
| RGB | rgb(79, 124, 31) |
| HSL | hsl(89, 60%, 30%) |
| HSV | hsv(89, 75%, 49%) |
| CMYK | cmyk(36.3%, 0%, 75%, 51.4%) |
| CIE-LAB | lab(47.20, -31.16, 43.30) |
| CIE-LCH | lch(47.20, 53.35, 125.74°) |
| OKLab | oklab(53.44% -0.0879 0.0973) |
| OKLCH | oklch(53.44% 0.131 132.1) |
| XYZ | xyz(10.6793, 16.1761, 3.8557) |
| Luminance | 0.1618 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Dark Grass Green
#388004
ΔE00 3.91
Avocado
#568203
ΔE00 3.92
Dirty Green
#667E2C
ΔE00 4.74
Tree Green
#2A7E19
ΔE00 5.16
Swamp
#698339
ΔE00 5.78
Sap Green
#5C8B15
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F7C1F #4C1F7C
analogous
#7C7A1F #4F7C1F #217C1F
triadic
#4F7C1F #1F4F7C #7C1F4F
tetradic
#4F7C1F #1F7C7A #4C1F7C #7C1F21
square
#4F7C1F #1F7C7A #4C1F7C #7C1F21
split-complementary
#4F7C1F #1F217C #7A1F7C
monochromatic
#111A07 #304B13 #4F7C1F #6EAD2B #8DD045
Accessibility & contrast
On white
4.96
#4F7C1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.24
#4F7C1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4F7C1F
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F7C1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F7C1F | 1.00 | 4.96 | 4.24 | 4.96 |
| #FFFFFF | 4.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#81720E
Deuteranopia (green-blind)
#7B6F28
Tritanopia (blue-blind)
#50776A
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #4f7c1f; /* rgb */ color: rgb(79, 124, 31); /* oklch */ color: oklch(53.4% 0.131 132.1);
Tailwind
colors: {
custom: {
50: '#84a261',
500: '#4f7c1f',
950: '#000000',
},
}SCSS
$custom: #4f7c1f; $custom-light: #84a261; $custom-dark: #000000;
JSON
{
"hex": "#4f7c1f",
"rgb": {
"r": 79,
"g": 124,
"b": 31
},
"hsl": {
"h": 89.032,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.53438,
"c": 0.1311,
"h": 132.1
},
"luminance": 0.16176
}Semantic roles & 50–950 ramp
primary
#4F7C1F
secondary
#7A48AF
accent
#45E391
background
#F8FAF6
surface
#EFF3EB
border
#CACDC6
text
#0B0F05
muted
#7C7F7A