#7E781B#7E781B
#7E781B is a mid, moderate yellow. Relative luminance 0.179; OKLCH L 56.1% C 0.109 H 105.6°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).
Color values
| HEX | #7E781B |
|---|---|
| RGB | rgb(126, 120, 27) |
| HSL | hsl(56, 65%, 30%) |
| HSV | hsv(56, 79%, 49%) |
| CMYK | cmyk(0%, 4.8%, 78.6%, 50.6%) |
| CIE-LAB | lab(49.43, -8.76, 48.13) |
| CIE-LCH | lch(49.43, 48.92, 100.31°) |
| OKLab | oklab(56.11% -0.0294 0.1053) |
| OKLCH | oklch(56.11% 0.109 105.6) |
| XYZ | xyz(15.5191, 17.9483, 3.6836) |
| Luminance | 0.1795 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ugly Brown
#7D7103
ΔE00 3.33
Olive
#808000
ΔE00 3.93
Olive (survey)
#6E750E
ΔE00 4.45
Brown Green
#706C11
ΔE00 4.82
Browny Green
#6F6C0A
ΔE00 4.93
Shit Green
#758000
ΔE00 5.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E781B #1B217E
analogous
#7E471B #7E781B #527E1B
triadic
#7E781B #1B7E78 #781B7E
tetradic
#7E781B #1B7E47 #1B217E #7E1B52
square
#7E781B #1B7E47 #1B217E #7E1B52
split-complementary
#7E781B #1B527E #471B7E
monochromatic
#191805 #4C4810 #7E781B #B0A826 #D6CC3E
Accessibility & contrast
On white
4.58
#7E781B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.59
#7E781B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7E781B
4.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E781B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7E781B | 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)
#837306
Deuteranopia (green-blind)
#857722
Tritanopia (blue-blind)
#886F66
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #7e781b; /* rgb */ color: rgb(126, 120, 27); /* oklch */ color: oklch(56.1% 0.109 105.6);
Tailwind
colors: {
custom: {
50: '#a79e60',
500: '#7e781b',
950: '#000000',
},
}SCSS
$custom: #7e781b; $custom-light: #a79e60; $custom-dark: #000000;
JSON
{
"hex": "#7e781b",
"rgb": {
"r": 126,
"g": 120,
"b": 27
},
"hsl": {
"h": 56.364,
"s": 64.706,
"l": 30
},
"oklch": {
"l": 0.56108,
"c": 0.10934,
"h": 105.6
},
"luminance": 0.17948
}Semantic roles & 50–950 ramp
primary
#7E781B
secondary
#434AB2
accent
#4AE840
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79