#4A7C18#4A7C18
#4A7C18 is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 53.1% C 0.138 H 133.2°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).
Color values
| HEX | #4A7C18 |
|---|---|
| RGB | rgb(74, 124, 24) |
| HSL | hsl(90, 68%, 29%) |
| HSV | hsv(90, 81%, 49%) |
| CMYK | cmyk(40.3%, 0%, 80.6%, 51.4%) |
| CIE-LAB | lab(46.89, -33.50, 45.44) |
| CIE-LCH | lch(46.89, 56.45, 126.41°) |
| OKLab | oklab(53.1% -0.0944 0.1007) |
| OKLCH | oklch(53.1% 0.138 133.2) |
| XYZ | xyz(10.1964, 15.9366, 3.4028) |
| Luminance | 0.1594 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Dark Grass Green
#388004
ΔE00 3.03
Avocado
#568203
ΔE00 3.87
Tree Green
#2A7E19
ΔE00 4.50
Dirty Green
#667E2C
ΔE00 5.60
Green
#008000
ΔE00 6.23
Sap Green
#5C8B15
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A7C18 #4A187C
analogous
#7C7C18 #4A7C18 #187C18
triadic
#4A7C18 #184A7C #7C184A
tetradic
#4A7C18 #187C7C #4A187C #7C1818
square
#4A7C18 #187C7C #4A187C #7C1818
split-complementary
#4A7C18 #18187C #7C187C
monochromatic
#0F1A05 #2B490E #4A7C18 #69AF22 #87D836
Accessibility & contrast
On white
5.02
#4A7C18 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.19
#4A7C18 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4A7C18
5.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A7C18 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A7C18 | 1.00 | 5.02 | 4.19 | 5.02 |
| #FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#817200
Deuteranopia (green-blind)
#7B6E23
Tritanopia (blue-blind)
#4A7769
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #4a7c18; /* rgb */ color: rgb(74, 124, 24); /* oklch */ color: oklch(53.1% 0.138 133.2);
Tailwind
colors: {
custom: {
50: '#81a25e',
500: '#4a7c18',
950: '#000000',
},
}SCSS
$custom: #4a7c18; $custom-light: #81a25e; $custom-dark: #000000;
JSON
{
"hex": "#4a7c18",
"rgb": {
"r": 74,
"g": 124,
"b": 24
},
"hsl": {
"h": 90,
"s": 67.568,
"l": 29.02
},
"oklch": {
"l": 0.53095,
"c": 0.13805,
"h": 133.2
},
"luminance": 0.15937
}Semantic roles & 50–950 ramp
primary
#4A7C18
secondary
#783FB1
accent
#3DEA94
background
#F8FAF5
surface
#EFF3E9
border
#CACDC5
text
#0B0F05
muted
#7C7F79