#7E791B#7E791B
#7E791B is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.3% C 0.110 H 106.3°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).
Color values
| HEX | #7E791B |
|---|---|
| RGB | rgb(126, 121, 27) |
| HSL | hsl(57, 65%, 30%) |
| HSV | hsv(57, 79%, 49%) |
| CMYK | cmyk(0%, 4%, 78.6%, 50.6%) |
| CIE-LAB | lab(49.73, -9.31, 48.40) |
| CIE-LCH | lch(49.73, 49.29, 100.89°) |
| OKLab | oklab(56.34% -0.0309 0.1059) |
| OKLCH | oklch(56.34% 0.11 106.3) |
| XYZ | xyz(15.6400, 18.1901, 3.7239) |
| Luminance | 0.1819 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.55
Ugly Brown
#7D7103
ΔE00 3.71
Olive (survey)
#6E750E
ΔE00 4.34
Shit Green
#758000
ΔE00 5.00
Brown Green
#706C11
ΔE00 5.11
Browny Green
#6F6C0A
ΔE00 5.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E791B #1B207E
analogous
#7E481B #7E791B #517E1B
triadic
#7E791B #1B7E79 #791B7E
tetradic
#7E791B #1B7E48 #1B207E #7E1B51
square
#7E791B #1B7E48 #1B207E #7E1B51
split-complementary
#7E791B #1B517E #481B7E
monochromatic
#191805 #4C4910 #7E791B #B0A926 #D6CE3E
Accessibility & contrast
On white
4.53
#7E791B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.64
#7E791B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7E791B
4.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E791B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7E791B | 1.00 | 4.53 | 4.64 | 4.64 |
| #FFFFFF | 4.53 | 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)
#847405
Deuteranopia (green-blind)
#867822
Tritanopia (blue-blind)
#887067
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #7e791b; /* rgb */ color: rgb(126, 121, 27); /* oklch */ color: oklch(56.3% 0.110 106.3);
Tailwind
colors: {
custom: {
50: '#a79f60',
500: '#7e791b',
950: '#000000',
},
}SCSS
$custom: #7e791b; $custom-light: #a79f60; $custom-dark: #000000;
JSON
{
"hex": "#7e791b",
"rgb": {
"r": 126,
"g": 121,
"b": 27
},
"hsl": {
"h": 56.97,
"s": 64.706,
"l": 30
},
"oklch": {
"l": 0.56341,
"c": 0.11031,
"h": 106.3
},
"luminance": 0.18189
}Semantic roles & 50–950 ramp
primary
#7E791B
secondary
#4349B2
accent
#49E840
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79