#8A871B#8A871B
#8A871B is a mid, vivid yellow. Relative luminance 0.228; OKLCH L 60.7% C 0.122 H 107.9°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).
Color values
| HEX | #8A871B |
|---|---|
| RGB | rgb(138, 135, 27) |
| HSL | hsl(58, 67%, 32%) |
| HSV | hsv(58, 80%, 54%) |
| CMYK | cmyk(0%, 2.2%, 80.4%, 45.9%) |
| CIE-LAB | lab(54.88, -11.40, 53.46) |
| CIE-LCH | lch(54.88, 54.66, 102.04°) |
| OKLab | oklab(60.71% -0.0374 0.1162) |
| OKLCH | oklch(60.71% 0.122 107.9) |
| XYZ | xyz(19.3438, 22.8110, 4.4207) |
| Luminance | 0.2281 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.12
Shit Green
#758000
ΔE00 5.30
Swamp Green
#748500
ΔE00 5.71
Baby Poop Green
#8F9805
ΔE00 6.26
Baby Shit Green
#889717
ΔE00 6.43
Pea Soup
#929901
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A871B #1B1E8A
analogous
#8A4F1B #8A871B #568A1B
triadic
#8A871B #1B8A87 #871B8A
tetradic
#8A871B #1B8A4F #1B1E8A #8A1B56
square
#8A871B #1B8A4F #1B1E8A #8A1B56
split-complementary
#8A871B #1B568A #4F1B8A
monochromatic
#242307 #575511 #8A871B #BDB925 #DBD745
Accessibility & contrast
On white
3.78
#8A871B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.56
#8A871B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A871B
5.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A871B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A871B | 1.00 | 3.78 | 5.56 | 5.56 |
| #FFFFFF | 3.78 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.56 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.56 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#958524
Tritanopia (blue-blind)
#957E73
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #8a871b; /* rgb */ color: rgb(138, 135, 27); /* oklch */ color: oklch(60.7% 0.122 107.9);
Tailwind
colors: {
custom: {
50: '#b0a962',
500: '#8a871b',
950: '#000000',
},
}SCSS
$custom: #8a871b; $custom-light: #b0a962; $custom-dark: #000000;
JSON
{
"hex": "#8a871b",
"rgb": {
"r": 138,
"g": 135,
"b": 27
},
"hsl": {
"h": 58.378,
"s": 67.273,
"l": 32.353
},
"oklch": {
"l": 0.60711,
"c": 0.12205,
"h": 107.9
},
"luminance": 0.2281
}Semantic roles & 50–950 ramp
primary
#8A871B
secondary
#4548BC
accent
#42EA3E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A