#7FA42C#7FA42C
#7FA42C is a light, vivid yellow-green. Relative luminance 0.312; OKLCH L 66.8% C 0.150 H 125.4°. Best body text is #000000 at 7.25:1 contrast (WCAG AA passes).
Color values
| HEX | #7FA42C |
|---|---|
| RGB | rgb(127, 164, 44) |
| HSL | hsl(79, 58%, 41%) |
| HSV | hsv(79, 73%, 64%) |
| CMYK | cmyk(22.6%, 0%, 73.2%, 35.7%) |
| CIE-LAB | lab(62.71, -30.06, 54.73) |
| CIE-LCH | lch(62.71, 62.44, 118.78°) |
| OKLab | oklab(66.83% -0.0869 0.1222) |
| OKLCH | oklch(66.83% 0.15 125.4) |
| XYZ | xyz(22.4826, 31.2445, 7.2287) |
| Luminance | 0.3125 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Avocado Green
#87A922
ΔE00 2.45
Leaf
#71AA34
ΔE00 3.84
Icky Green
#8FAE22
ΔE00 4.25
Vomit Green
#89A203
ΔE00 4.25
Avocado (survey)
#90B134
ΔE00 4.28
Pea Green
#8EAB12
ΔE00 4.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7FA42C #512CA4
analogous
#A48D2C #7FA42C #43A42C
triadic
#7FA42C #2C7FA4 #A42C7F
tetradic
#7FA42C #2CA48D #512CA4 #A42C43
square
#7FA42C #2CA48D #512CA4 #A42C43
split-complementary
#7FA42C #2C43A4 #8D2CA4
monochromatic
#344312 #5A741F #7FA42C #A1CC41 #B9D971
Accessibility & contrast
On white
2.90
#7FA42C on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.25
#7FA42C on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #7FA42C
7.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7FA42C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7FA42C | 1.00 | 2.90 | 7.25 | 7.25 |
| #FFFFFF | 2.90 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.25 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.25 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AD9916
Deuteranopia (green-blind)
#A89737
Tritanopia (blue-blind)
#859C8D
Achromatopsia (no color)
#989898
Design tokens & code
CSS
--color: #7fa42c; /* rgb */ color: rgb(127, 164, 44); /* oklch */ color: oklch(66.8% 0.150 125.4);
Tailwind
colors: {
custom: {
50: '#a8bf6e',
500: '#7fa42c',
950: '#000000',
},
}SCSS
$custom: #7fa42c; $custom-light: #a8bf6e; $custom-dark: #000000;
JSON
{
"hex": "#7fa42c",
"rgb": {
"r": 127,
"g": 164,
"b": 44
},
"hsl": {
"h": 78.5,
"s": 57.692,
"l": 40.784
},
"oklch": {
"l": 0.66835,
"c": 0.14996,
"h": 125.4
},
"luminance": 0.31245
}Semantic roles & 50–950 ramp
primary
#7FA42C
secondary
#866BC0
accent
#47E176
background
#FAFBF6
surface
#F4F7EC
border
#CED0C7
text
#101208
muted
#7F817B