#7E781A#7E781A
#7E781A is a mid, moderate yellow. Relative luminance 0.179; OKLCH L 56.1% C 0.110 H 105.6°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).
Color values
| HEX | #7E781A |
|---|---|
| RGB | rgb(126, 120, 26) |
| HSL | hsl(56, 66%, 30%) |
| HSV | hsv(56, 79%, 49%) |
| CMYK | cmyk(0%, 4.8%, 79.4%, 50.6%) |
| CIE-LAB | lab(49.43, -8.80, 48.47) |
| CIE-LCH | lch(49.43, 49.27, 100.29°) |
| OKLab | oklab(56.1% -0.0296 0.1058) |
| OKLCH | oklch(56.1% 0.11 105.6) |
| XYZ | xyz(15.5078, 17.9437, 3.6237) |
| Luminance | 0.1794 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ugly Brown
#7D7103
ΔE00 3.28
Olive
#808000
ΔE00 3.86
Olive (survey)
#6E750E
ΔE00 4.44
Brown Green
#706C11
ΔE00 4.83
Browny Green
#6F6C0A
ΔE00 4.93
Shit Green
#758000
ΔE00 5.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E781A #1A207E
analogous
#7E461A #7E781A #527E1A
triadic
#7E781A #1A7E78 #781A7E
tetradic
#7E781A #1A7E46 #1A207E #7E1A52
square
#7E781A #1A7E46 #1A207E #7E1A52
split-complementary
#7E781A #1A527E #461A7E
monochromatic
#191805 #4B4810 #7E781A #B1A824 #D7CD3C
Accessibility & contrast
On white
4.58
#7E781A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.59
#7E781A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7E781A
4.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E781A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7E781A | 1.00 | 4.58 | 4.59 | 4.59 |
| #FFFFFF | 4.58 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.59 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.59 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#837303
Deuteranopia (green-blind)
#857722
Tritanopia (blue-blind)
#886F66
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #7e781a; /* rgb */ color: rgb(126, 120, 26); /* oklch */ color: oklch(56.1% 0.110 105.6);
Tailwind
colors: {
custom: {
50: '#a79e5f',
500: '#7e781a',
950: '#000000',
},
}SCSS
$custom: #7e781a; $custom-light: #a79e5f; $custom-dark: #000000;
JSON
{
"hex": "#7e781a",
"rgb": {
"r": 126,
"g": 120,
"b": 26
},
"hsl": {
"h": 56.4,
"s": 65.789,
"l": 29.804
},
"oklch": {
"l": 0.56102,
"c": 0.1099,
"h": 105.6
},
"luminance": 0.17943
}Semantic roles & 50–950 ramp
primary
#7E781A
secondary
#4248B2
accent
#49E93F
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79