#4D7F18#4D7F18
#4D7F18 is a mid, vivid yellow-green. Relative luminance 0.168; OKLCH L 54.1% C 0.140 H 132.7°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).
Color values
| HEX | #4D7F18 |
|---|---|
| RGB | rgb(77, 127, 24) |
| HSL | hsl(89, 68%, 30%) |
| HSV | hsv(89, 81%, 50%) |
| CMYK | cmyk(39.4%, 0%, 81.1%, 50.2%) |
| CIE-LAB | lab(48.03, -33.73, 46.57) |
| CIE-LCH | lch(48.03, 57.50, 125.92°) |
| OKLab | oklab(54.07% -0.0952 0.103) |
| OKLCH | oklch(54.07% 0.14 132.7) |
| XYZ | xyz(10.8147, 16.8220, 3.5411) |
| Luminance | 0.1682 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Avocado
#568203
ΔE00 2.94
Dark Grass Green
#388004
ΔE00 3.00
Tree Green
#2A7E19
ΔE00 4.92
Sap Green
#5C8B15
ΔE00 5.09
Dirty Green
#667E2C
ΔE00 5.24
Mossy Green
#638B27
ΔE00 5.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D7F18 #4A187F
analogous
#7F7E18 #4D7F18 #1A7F18
triadic
#4D7F18 #184D7F #7F184D
tetradic
#4D7F18 #187F7E #4A187F #7F181A
square
#4D7F18 #187F7E #4A187F #7F181A
split-complementary
#4D7F18 #181A7F #7E187F
monochromatic
#101A05 #2E4C0E #4D7F18 #6CB222 #8BD938
Accessibility & contrast
On white
4.81
#4D7F18 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.36
#4D7F18 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4D7F18
4.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D7F18 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D7F18 | 1.00 | 4.81 | 4.36 | 4.81 |
| #FFFFFF | 4.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#7E7123
Tritanopia (blue-blind)
#4E7A6C
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #4d7f18; /* rgb */ color: rgb(77, 127, 24); /* oklch */ color: oklch(54.1% 0.140 132.7);
Tailwind
colors: {
custom: {
50: '#84a45e',
500: '#4d7f18',
950: '#000000',
},
}SCSS
$custom: #4d7f18; $custom-light: #84a45e; $custom-dark: #000000;
JSON
{
"hex": "#4d7f18",
"rgb": {
"r": 77,
"g": 127,
"b": 24
},
"hsl": {
"h": 89.126,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.54073,
"c": 0.14029,
"h": 132.7
},
"luminance": 0.16822
}Semantic roles & 50–950 ramp
primary
#4D7F18
secondary
#783FB3
accent
#3DEB91
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B0F05
muted
#7C7F79