#8A7E1F#8A7E1F
#8A7E1F is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.7% C 0.111 H 101.8°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7E1F |
|---|---|
| RGB | rgb(138, 126, 31) |
| HSL | hsl(53, 63%, 33%) |
| HSV | hsv(53, 78%, 54%) |
| CMYK | cmyk(0%, 8.7%, 77.5%, 45.9%) |
| CIE-LAB | lab(52.31, -6.32, 49.78) |
| CIE-LCH | lch(52.31, 50.18, 97.23°) |
| OKLab | oklab(58.68% -0.0228 0.1091) |
| OKLCH | oklch(58.68% 0.111 101.8) |
| XYZ | xyz(18.1903, 20.4247, 4.2803) |
| Luminance | 0.2042 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 4.06
Olive
#808000
ΔE00 4.09
Hazel
#8E7618
ΔE00 4.53
Ugly Brown
#7D7103
ΔE00 5.19
Puke Brown
#947706
ΔE00 5.79
Poo
#8F7303
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7E1F #1F2B8A
analogous
#8A481F #8A7E1F #608A1F
triadic
#8A7E1F #1F8A7E #7E1F8A
tetradic
#8A7E1F #1F8A48 #1F2B8A #8A1F60
square
#8A7E1F #1F8A48 #1F2B8A #8A1F60
split-complementary
#8A7E1F #1F608A #481F8A
monochromatic
#262309 #585014 #8A7E1F #BCAC2A #D7C74C
Accessibility & contrast
On white
4.13
#8A7E1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.08
#8A7E1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7E1F
5.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7E1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7E1F | 1.00 | 4.13 | 5.08 | 5.08 |
| #FFFFFF | 4.13 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.08 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.08 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7A0B
Deuteranopia (green-blind)
#8E7F26
Tritanopia (blue-blind)
#95756C
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #8a7e1f; /* rgb */ color: rgb(138, 126, 31); /* oklch */ color: oklch(58.7% 0.111 101.8);
Tailwind
colors: {
custom: {
50: '#b0a363',
500: '#8a7e1f',
950: '#000000',
},
}SCSS
$custom: #8a7e1f; $custom-light: #b0a363; $custom-dark: #000000;
JSON
{
"hex": "#8a7e1f",
"rgb": {
"r": 138,
"g": 126,
"b": 31
},
"hsl": {
"h": 53.271,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.58676,
"c": 0.11147,
"h": 101.8
},
"luminance": 0.20424
}Semantic roles & 50–950 ramp
primary
#8A7E1F
secondary
#4B58BA
accent
#54E641
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A