#8B871F#8B871F
#8B871F is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 60.8% C 0.120 H 107.2°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).
Color values
| HEX | #8B871F |
|---|---|
| RGB | rgb(139, 135, 31) |
| HSL | hsl(58, 64%, 33%) |
| HSV | hsv(58, 78%, 55%) |
| CMYK | cmyk(0%, 2.9%, 77.7%, 45.5%) |
| CIE-LAB | lab(54.99, -10.78, 52.29) |
| CIE-LCH | lch(54.99, 53.39, 101.65°) |
| OKLab | oklab(60.83% -0.0354 0.1144) |
| OKLCH | oklch(60.83% 0.12 107.2) |
| XYZ | xyz(19.5595, 22.9165, 4.6891) |
| Luminance | 0.2292 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.39
Shit Green
#758000
ΔE00 5.59
Swamp Green
#748500
ΔE00 6.03
Baby Poop Green
#8F9805
ΔE00 6.46
Baby Shit Green
#889717
ΔE00 6.63
Baby Poop
#937C00
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8B871F #1F238B
analogous
#8B511F #8B871F #598B1F
triadic
#8B871F #1F8B87 #871F8B
tetradic
#8B871F #1F8B51 #1F238B #8B1F59
square
#8B871F #1F8B51 #1F238B #8B1F59
split-complementary
#8B871F #1F598B #511F8B
monochromatic
#272609 #595614 #8B871F #BDB82A #D7D24D
Accessibility & contrast
On white
3.76
#8B871F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.58
#8B871F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8B871F
5.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8B871F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8B871F | 1.00 | 3.76 | 5.58 | 5.58 |
| #FFFFFF | 3.76 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.58 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.58 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#938206
Deuteranopia (green-blind)
#958527
Tritanopia (blue-blind)
#967E73
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #8b871f; /* rgb */ color: rgb(139, 135, 31); /* oklch */ color: oklch(60.8% 0.120 107.2);
Tailwind
colors: {
custom: {
50: '#b0a964',
500: '#8b871f',
950: '#000000',
},
}SCSS
$custom: #8b871f; $custom-light: #b0a964; $custom-dark: #000000;
JSON
{
"hex": "#8b871f",
"rgb": {
"r": 139,
"g": 135,
"b": 31
},
"hsl": {
"h": 57.778,
"s": 63.529,
"l": 33.333
},
"oklch": {
"l": 0.60826,
"c": 0.11975,
"h": 107.2
},
"luminance": 0.22916
}Semantic roles & 50–950 ramp
primary
#8B871F
secondary
#4C50BA
accent
#47E741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A