#7E781F#7E781F
#7E781F is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.1% C 0.107 H 105.4°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).
Color values
| HEX | #7E781F |
|---|---|
| RGB | rgb(126, 120, 31) |
| HSL | hsl(56, 61%, 31%) |
| HSV | hsv(56, 75%, 49%) |
| CMYK | cmyk(0%, 4.8%, 75.4%, 50.6%) |
| CIE-LAB | lab(49.46, -8.57, 46.68) |
| CIE-LCH | lch(49.46, 47.46, 100.40°) |
| OKLab | oklab(56.14% -0.0285 0.103) |
| OKLCH | oklch(56.14% 0.107 105.4) |
| XYZ | xyz(15.5686, 17.9681, 3.9442) |
| Luminance | 0.1797 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ugly Brown
#7D7103
ΔE00 3.55
Olive
#808000
ΔE00 4.22
Olive (survey)
#6E750E
ΔE00 4.50
Brown Green
#706C11
ΔE00 4.82
Browny Green
#6F6C0A
ΔE00 4.98
Brownish Green
#6A6E09
ΔE00 5.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E781F #1F257E
analogous
#7E481F #7E781F #547E1F
triadic
#7E781F #1F7E78 #781F7E
tetradic
#7E781F #1F7E48 #1F257E #7E1F54
square
#7E781F #1F7E48 #1F257E #7E1F54
split-complementary
#7E781F #1F547E #481F7E
monochromatic
#1C1A07 #4D4913 #7E781F #AFA72B #D1C946
Accessibility & contrast
On white
4.57
#7E781F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.59
#7E781F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7E781F
4.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E781F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7E781F | 1.00 | 4.57 | 4.59 | 4.59 |
| #FFFFFF | 4.57 | 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)
#83730E
Deuteranopia (green-blind)
#857725
Tritanopia (blue-blind)
#886F67
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #7e781f; /* rgb */ color: rgb(126, 120, 31); /* oklch */ color: oklch(56.1% 0.107 105.4);
Tailwind
colors: {
custom: {
50: '#a69e62',
500: '#7e781f',
950: '#000000',
},
}SCSS
$custom: #7e781f; $custom-light: #a69e62; $custom-dark: #000000;
JSON
{
"hex": "#7e781f",
"rgb": {
"r": 126,
"g": 120,
"b": 31
},
"hsl": {
"h": 56.211,
"s": 60.51,
"l": 30.784
},
"oklch": {
"l": 0.56135,
"c": 0.1069,
"h": 105.4
},
"luminance": 0.17967
}Semantic roles & 50–950 ramp
primary
#7E781F
secondary
#484EB1
accent
#4EE444
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A