#7E792F#7E792F
#7E792F is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.5% C 0.096 H 105.4°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).
Color values
| HEX | #7E792F |
|---|---|
| RGB | rgb(126, 121, 47) |
| HSL | hsl(56, 46%, 34%) |
| HSV | hsv(56, 63%, 49%) |
| CMYK | cmyk(0%, 4%, 62.7%, 50.6%) |
| CIE-LAB | lab(49.88, -8.13, 40.17) |
| CIE-LCH | lch(49.88, 40.99, 101.45°) |
| OKLab | oklab(56.51% -0.0254 0.0921) |
| OKLCH | oklch(56.51% 0.096 105.4) |
| XYZ | xyz(15.9552, 18.3161, 5.3837) |
| Luminance | 0.1832 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Drab
#6F7632
ΔE00 4.64
Drab
#828344
ΔE00 4.71
Olive (survey)
#6E750E
ΔE00 5.30
Ugly Brown
#7D7103
ΔE00 5.36
Brown Green
#706C11
ΔE00 5.66
Olive
#808000
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E792F #2F347E
analogous
#7E522F #7E792F #5C7E2F
triadic
#7E792F #2F7E79 #792F7E
tetradic
#7E792F #2F7E52 #2F347E #7E2F5C
square
#7E792F #2F7E52 #2F347E #7E2F5C
split-complementary
#7E792F #2F5C7E #522F7E
monochromatic
#25230E #514E1E #7E792F #ABA440 #C5BE63
Accessibility & contrast
On white
4.50
#7E792F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.66
#7E792F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7E792F
4.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E792F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7E792F | 1.00 | 4.50 | 4.66 | 4.66 |
| #FFFFFF | 4.50 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.66 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.66 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#837527
Deuteranopia (green-blind)
#857833
Tritanopia (blue-blind)
#877169
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #7e792f; /* rgb */ color: rgb(126, 121, 47); /* oklch */ color: oklch(56.5% 0.096 105.4);
Tailwind
colors: {
custom: {
50: '#a69f6b',
500: '#7e792f',
950: '#000000',
},
}SCSS
$custom: #7e792f; $custom-light: #a69f6b; $custom-dark: #000000;
JSON
{
"hex": "#7e792f",
"rgb": {
"r": 126,
"g": 121,
"b": 47
},
"hsl": {
"h": 56.203,
"s": 45.665,
"l": 33.922
},
"oklch": {
"l": 0.5651,
"c": 0.09551,
"h": 105.4
},
"luminance": 0.18316
}Semantic roles & 50–950 ramp
primary
#7E792F
secondary
#5D62AC
accent
#5BD552
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E07
muted
#7F7E7A