#8E781F#8E781F
#8E781F is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.7% C 0.107 H 94.4°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).
Color values
| HEX | #8E781F |
|---|---|
| RGB | rgb(142, 120, 31) |
| HSL | hsl(48, 64%, 34%) |
| HSV | hsv(48, 78%, 56%) |
| CMYK | cmyk(0%, 15.5%, 78.2%, 44.3%) |
| CIE-LAB | lab(51.02, -1.10, 48.71) |
| CIE-LCH | lch(51.02, 48.72, 91.29°) |
| OKLab | oklab(57.74% -0.0083 0.1067) |
| OKLCH | oklch(57.74% 0.107 94.4) |
| XYZ | xyz(18.1201, 19.2837, 4.0638) |
| Luminance | 0.1928 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 1.03
Puke Brown
#947706
ΔE00 2.82
Poo
#8F7303
ΔE00 2.92
Baby Poop
#937C00
ΔE00 3.13
Yellowish Brown
#9B7A01
ΔE00 4.32
Ugly Brown
#7D7103
ΔE00 5.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E781F #1F358E
analogous
#8E411F #8E781F #6D8E1F
triadic
#8E781F #1F8E78 #781F8E
tetradic
#8E781F #1F8E41 #1F358E #8E1F6D
square
#8E781F #1F8E41 #1F358E #8E1F6D
split-complementary
#8E781F #1F6D8E #411F8E
monochromatic
#2A2309 #5C4E14 #8E781F #C0A22A #D9BD4F
Accessibility & contrast
On white
4.32
#8E781F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.86
#8E781F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8E781F
4.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E781F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8E781F | 1.00 | 4.32 | 4.86 | 4.86 |
| #FFFFFF | 4.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.86 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.86 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#85760E
Deuteranopia (green-blind)
#8B7C25
Tritanopia (blue-blind)
#9A6E67
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #8e781f; /* rgb */ color: rgb(142, 120, 31); /* oklch */ color: oklch(57.7% 0.107 94.4);
Tailwind
colors: {
custom: {
50: '#b39e62',
500: '#8e781f',
950: '#000000',
},
}SCSS
$custom: #8e781f; $custom-light: #b39e62; $custom-dark: #000000;
JSON
{
"hex": "#8e781f",
"rgb": {
"r": 142,
"g": 120,
"b": 31
},
"hsl": {
"h": 48.108,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.57742,
"c": 0.10697,
"h": 94.4
},
"luminance": 0.19283
}Semantic roles & 50–950 ramp
primary
#8E781F
secondary
#4D63BB
accent
#62E741
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A