#8C871F#8C871F
#8C871F is a mid, moderate yellow. Relative luminance 0.230; OKLCH L 60.9% C 0.120 H 106.6°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).
Color values
| HEX | #8C871F |
|---|---|
| RGB | rgb(140, 135, 31) |
| HSL | hsl(57, 64%, 34%) |
| HSV | hsv(57, 78%, 55%) |
| CMYK | cmyk(0%, 3.6%, 77.9%, 45.1%) |
| CIE-LAB | lab(55.08, -10.32, 52.40) |
| CIE-LCH | lch(55.08, 53.41, 101.14°) |
| OKLab | oklab(60.92% -0.0342 0.1146) |
| OKLCH | oklch(60.92% 0.12 106.6) |
| XYZ | xyz(19.7273, 23.0030, 4.6969) |
| Luminance | 0.2300 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.54
Shit Green
#758000
ΔE00 5.85
Swamp Green
#748500
ΔE00 6.33
Baby Poop
#937C00
ΔE00 6.44
Baby Poop Green
#8F9805
ΔE00 6.55
Pea Soup
#929901
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8C871F #1F248C
analogous
#8C501F #8C871F #5A8C1F
triadic
#8C871F #1F8C87 #871F8C
tetradic
#8C871F #1F8C50 #1F248C #8C1F5A
square
#8C871F #1F8C50 #1F248C #8C1F5A
split-complementary
#8C871F #1F5A8C #501F8C
monochromatic
#282609 #5A5714 #8C871F #BEB72A #D8D14E
Accessibility & contrast
On white
3.75
#8C871F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.60
#8C871F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8C871F
5.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8C871F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8C871F | 1.00 | 3.75 | 5.60 | 5.60 |
| #FFFFFF | 3.75 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.60 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.60 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#938206
Deuteranopia (green-blind)
#958627
Tritanopia (blue-blind)
#977E73
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #8c871f; /* rgb */ color: rgb(140, 135, 31); /* oklch */ color: oklch(60.9% 0.120 106.6);
Tailwind
colors: {
custom: {
50: '#b1a964',
500: '#8c871f',
950: '#000000',
},
}SCSS
$custom: #8c871f; $custom-light: #b1a964; $custom-dark: #000000;
JSON
{
"hex": "#8c871f",
"rgb": {
"r": 140,
"g": 135,
"b": 31
},
"hsl": {
"h": 57.248,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.60918,
"c": 0.1196,
"h": 106.6
},
"luminance": 0.23002
}Semantic roles & 50–950 ramp
primary
#8C871F
secondary
#4C51BB
accent
#49E741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A