#7E771F#7E771F
#7E771F is a mid, moderate yellow. Relative luminance 0.177; OKLCH L 55.9% C 0.106 H 104.7°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).
Color values
| HEX | #7E771F |
|---|---|
| RGB | rgb(126, 119, 31) |
| HSL | hsl(56, 61%, 31%) |
| HSV | hsv(56, 75%, 49%) |
| CMYK | cmyk(0%, 5.6%, 75.4%, 50.6%) |
| CIE-LAB | lab(49.17, -8.01, 46.40) |
| CIE-LCH | lch(49.17, 47.09, 99.80°) |
| OKLab | oklab(55.9% -0.0269 0.1024) |
| OKLCH | oklch(55.9% 0.106 104.7) |
| XYZ | xyz(15.4490, 17.7288, 3.9043) |
| Luminance | 0.1773 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ugly Brown
#7D7103
ΔE00 3.22
Brown Green
#706C11
ΔE00 4.56
Olive
#808000
ΔE00 4.60
Olive (survey)
#6E750E
ΔE00 4.67
Browny Green
#6F6C0A
ΔE00 4.76
Brownish Green
#6A6E09
ΔE00 5.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E771F #1F267E
analogous
#7E471F #7E771F #557E1F
triadic
#7E771F #1F7E77 #771F7E
tetradic
#7E771F #1F7E47 #1F267E #7E1F55
square
#7E771F #1F7E47 #1F267E #7E1F55
split-complementary
#7E771F #1F557E #471F7E
monochromatic
#1C1A07 #4D4913 #7E771F #AFA52B #D1C746
Accessibility & contrast
On white
4.62
#7E771F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.55
#7E771F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #7E771F
4.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E771F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E771F | 1.00 | 4.62 | 4.55 | 4.62 |
| #FFFFFF | 4.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#82730F
Deuteranopia (green-blind)
#847725
Tritanopia (blue-blind)
#886E66
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #7e771f; /* rgb */ color: rgb(126, 119, 31); /* oklch */ color: oklch(55.9% 0.106 104.7);
Tailwind
colors: {
custom: {
50: '#a69d62',
500: '#7e771f',
950: '#000000',
},
}SCSS
$custom: #7e771f; $custom-light: #a69d62; $custom-dark: #000000;
JSON
{
"hex": "#7e771f",
"rgb": {
"r": 126,
"g": 119,
"b": 31
},
"hsl": {
"h": 55.579,
"s": 60.51,
"l": 30.784
},
"oklch": {
"l": 0.55903,
"c": 0.10592,
"h": 104.7
},
"luminance": 0.17728
}Semantic roles & 50–950 ramp
primary
#7E771F
secondary
#484FB1
accent
#50E444
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A