#7E9D1F#7E9D1F
#7E9D1F is a light, vivid yellow-green. Relative luminance 0.286; OKLCH L 65.0% C 0.149 H 123.2°. Best body text is #000000 at 6.73:1 contrast (WCAG AA passes).
Color values
| HEX | #7E9D1F |
|---|---|
| RGB | rgb(126, 157, 31) |
| HSL | hsl(75, 67%, 37%) |
| HSV | hsv(75, 80%, 62%) |
| CMYK | cmyk(19.7%, 0%, 80.3%, 38.4%) |
| CIE-LAB | lab(60.47, -27.78, 56.92) |
| CIE-LCH | lch(60.47, 63.34, 116.01°) |
| OKLab | oklab(64.98% -0.0816 0.1247) |
| OKLCH | oklch(64.98% 0.149 123.2) |
| XYZ | xyz(20.9088, 28.6484, 5.7242) |
| Luminance | 0.2865 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Ugly Green
#7A9703
ΔE00 2.34
Vomit Green
#89A203
ΔE00 3.36
Avocado Green
#87A922
ΔE00 3.70
Baby Shit Green
#889717
ΔE00 3.86
Dark Yellow Green
#728F02
ΔE00 4.75
Pea Green
#8EAB12
ΔE00 5.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E9D1F #3E1F9D
analogous
#9D7D1F #7E9D1F #3F9D1F
triadic
#7E9D1F #1F7E9D #9D1F7E
tetradic
#7E9D1F #1F9D7D #3E1F9D #9D1F3F
square
#7E9D1F #1F9D7D #3E1F9D #9D1F3F
split-complementary
#7E9D1F #1F3F9D #7D1F9D
monochromatic
#2C370B #556A15 #7E9D1F #A7D029 #BDDE58
Accessibility & contrast
On white
3.12
#7E9D1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.73
#7E9D1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7E9D1F
6.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E9D1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7E9D1F | 1.00 | 3.12 | 6.73 | 6.73 |
| #FFFFFF | 3.12 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.73 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.73 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#A69300
Deuteranopia (green-blind)
#A2922C
Tritanopia (blue-blind)
#859586
Achromatopsia (no color)
#929292
Design tokens & code
CSS
--color: #7e9d1f; /* rgb */ color: rgb(126, 157, 31); /* oklch */ color: oklch(65.0% 0.149 123.2);
Tailwind
colors: {
custom: {
50: '#a7ba67',
500: '#7e9d1f',
950: '#000000',
},
}SCSS
$custom: #7e9d1f; $custom-light: #a7ba67; $custom-dark: #000000;
JSON
{
"hex": "#7e9d1f",
"rgb": {
"r": 126,
"g": 157,
"b": 31
},
"hsl": {
"h": 74.762,
"s": 67.021,
"l": 36.863
},
"oklch": {
"l": 0.64979,
"c": 0.14905,
"h": 123.2
},
"luminance": 0.28648
}Semantic roles & 50–950 ramp
primary
#7E9D1F
secondary
#7056C2
accent
#3EEA68
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A