#7E7828#7E7828
#7E7828 is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.2% C 0.100 H 105.0°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).
Color values
| HEX | #7E7828 |
|---|---|
| RGB | rgb(126, 120, 40) |
| HSL | hsl(56, 52%, 33%) |
| HSV | hsv(56, 68%, 49%) |
| CMYK | cmyk(0%, 4.8%, 68.3%, 50.6%) |
| CIE-LAB | lab(49.52, -8.06, 43.02) |
| CIE-LCH | lch(49.52, 43.77, 100.61°) |
| OKLab | oklab(56.21% -0.026 0.097) |
| OKLCH | oklch(56.21% 0.1 105) |
| XYZ | xyz(15.7043, 18.0223, 4.6585) |
| Luminance | 0.1802 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ugly Brown
#7D7103
ΔE00 4.32
Olive (survey)
#6E750E
ΔE00 4.87
Brown Green
#706C11
ΔE00 5.02
Olive
#808000
ΔE00 5.11
Olive Drab
#6F7632
ΔE00 5.20
Browny Green
#6F6C0A
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E7828 #282E7E
analogous
#7E4D28 #7E7828 #597E28
triadic
#7E7828 #287E78 #78287E
tetradic
#7E7828 #287E4D #282E7E #7E2859
square
#7E7828 #287E4D #282E7E #7E2859
split-complementary
#7E7828 #28597E #4D287E
monochromatic
#21200B #504C19 #7E7828 #ACA437 #CAC257
Accessibility & contrast
On white
4.56
#7E7828 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.60
#7E7828 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7E7828
4.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E7828 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7E7828 | 1.00 | 4.56 | 4.60 | 4.60 |
| #FFFFFF | 4.56 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.60 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.60 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#83741D
Deuteranopia (green-blind)
#85772D
Tritanopia (blue-blind)
#877068
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #7e7828; /* rgb */ color: rgb(126, 120, 40); /* oklch */ color: oklch(56.2% 0.100 105.0);
Tailwind
colors: {
custom: {
50: '#a69e67',
500: '#7e7828',
950: '#000000',
},
}SCSS
$custom: #7e7828; $custom-light: #a69e67; $custom-dark: #000000;
JSON
{
"hex": "#7e7828",
"rgb": {
"r": 126,
"g": 120,
"b": 40
},
"hsl": {
"h": 55.814,
"s": 51.807,
"l": 32.549
},
"oklch": {
"l": 0.56208,
"c": 0.10041,
"h": 105
},
"luminance": 0.18022
}Semantic roles & 50–950 ramp
primary
#7E7828
secondary
#535AAF
accent
#56DB4D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A