#7E7B18#7E7B18
#7E7B18 is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.8% C 0.114 H 107.7°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).
Color values
| HEX | #7E7B18 |
|---|---|
| RGB | rgb(126, 123, 24) |
| HSL | hsl(58, 68%, 29%) |
| HSV | hsv(58, 81%, 49%) |
| CMYK | cmyk(0%, 2.4%, 81%, 50.6%) |
| CIE-LAB | lab(50.30, -10.53, 49.92) |
| CIE-LCH | lch(50.30, 51.02, 101.91°) |
| OKLab | oklab(56.79% -0.0346 0.1085) |
| OKLCH | oklch(56.79% 0.114 107.7) |
| XYZ | xyz(15.8527, 18.6680, 3.6322) |
| Luminance | 0.1867 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 2.64
Shit Green
#758000
ΔE00 4.14
Olive (survey)
#6E750E
ΔE00 4.28
Ugly Brown
#7D7103
ΔE00 4.43
Poop Green
#6F7C00
ΔE00 4.57
Murky Green
#6C7A0E
ΔE00 5.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E7B18 #181B7E
analogous
#7E4818 #7E7B18 #4E7E18
triadic
#7E7B18 #187E7B #7B187E
tetradic
#7E7B18 #187E48 #181B7E #7E184E
square
#7E7B18 #187E48 #181B7E #7E184E
split-complementary
#7E7B18 #184E7E #48187E
monochromatic
#1A1905 #4B490E #7E7B18 #B1AD22 #D9D437
Accessibility & contrast
On white
4.44
#7E7B18 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.73
#7E7B18 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7E7B18
4.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E7B18 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7E7B18 | 1.00 | 4.44 | 4.73 | 4.73 |
| #FFFFFF | 4.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.73 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.73 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#887921
Tritanopia (blue-blind)
#887269
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #7e7b18; /* rgb */ color: rgb(126, 123, 24); /* oklch */ color: oklch(56.8% 0.114 107.7);
Tailwind
colors: {
custom: {
50: '#a7a05f',
500: '#7e7b18',
950: '#000000',
},
}SCSS
$custom: #7e7b18; $custom-light: #a7a05f; $custom-dark: #000000;
JSON
{
"hex": "#7e7b18",
"rgb": {
"r": 126,
"g": 123,
"b": 24
},
"hsl": {
"h": 58.235,
"s": 68,
"l": 29.412
},
"oklch": {
"l": 0.56791,
"c": 0.11392,
"h": 107.7
},
"luminance": 0.18667
}Semantic roles & 50–950 ramp
primary
#7E7B18
secondary
#3F43B2
accent
#42EB3D
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79