#7E791F#7E791F
#7E791F is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.4% C 0.108 H 106.2°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).
Color values
| HEX | #7E791F |
|---|---|
| RGB | rgb(126, 121, 31) |
| HSL | hsl(57, 61%, 31%) |
| HSV | hsv(57, 75%, 49%) |
| CMYK | cmyk(0%, 4%, 75.4%, 50.6%) |
| CIE-LAB | lab(49.75, -9.12, 46.96) |
| CIE-LCH | lch(49.75, 47.84, 101.00°) |
| OKLab | oklab(56.37% -0.03 0.1036) |
| OKLCH | oklch(56.37% 0.108 106.2) |
| XYZ | xyz(15.6895, 18.2099, 3.9845) |
| Luminance | 0.1821 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.86
Ugly Brown
#7D7103
ΔE00 3.91
Olive (survey)
#6E750E
ΔE00 4.38
Brown Green
#706C11
ΔE00 5.10
Shit Green
#758000
ΔE00 5.17
Browny Green
#6F6C0A
ΔE00 5.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E791F #1F247E
analogous
#7E491F #7E791F #537E1F
triadic
#7E791F #1F7E79 #791F7E
tetradic
#7E791F #1F7E49 #1F247E #7E1F53
square
#7E791F #1F7E49 #1F247E #7E1F53
split-complementary
#7E791F #1F537E #491F7E
monochromatic
#1C1B07 #4D4A13 #7E791F #AFA82B #D1CA46
Accessibility & contrast
On white
4.52
#7E791F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.64
#7E791F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7E791F
4.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E791F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7E791F | 1.00 | 4.52 | 4.64 | 4.64 |
| #FFFFFF | 4.52 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.64 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.64 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#84740E
Deuteranopia (green-blind)
#867826
Tritanopia (blue-blind)
#887168
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #7e791f; /* rgb */ color: rgb(126, 121, 31); /* oklch */ color: oklch(56.4% 0.108 106.2);
Tailwind
colors: {
custom: {
50: '#a69f62',
500: '#7e791f',
950: '#000000',
},
}SCSS
$custom: #7e791f; $custom-light: #a69f62; $custom-dark: #000000;
JSON
{
"hex": "#7e791f",
"rgb": {
"r": 126,
"g": 121,
"b": 31
},
"hsl": {
"h": 56.842,
"s": 60.51,
"l": 30.784
},
"oklch": {
"l": 0.56368,
"c": 0.10789,
"h": 106.2
},
"luminance": 0.18209
}Semantic roles & 50–950 ramp
primary
#7E791F
secondary
#484DB1
accent
#4DE444
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A