#8F871F#8F871F
#8F871F is a mid, moderate yellow. Relative luminance 0.233; OKLCH L 61.2% C 0.119 H 104.8°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).
Color values
| HEX | #8F871F |
|---|---|
| RGB | rgb(143, 135, 31) |
| HSL | hsl(56, 64%, 34%) |
| HSV | hsv(56, 78%, 56%) |
| CMYK | cmyk(0%, 5.6%, 78.3%, 43.9%) |
| CIE-LAB | lab(55.35, -8.95, 52.75) |
| CIE-LCH | lch(55.35, 53.50, 99.63°) |
| OKLab | oklab(61.2% -0.0305 0.1152) |
| OKLCH | oklch(61.2% 0.119 104.8) |
| XYZ | xyz(20.2399, 23.2673, 4.7210) |
| Luminance | 0.2327 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 4.10
Baby Poop
#937C00
ΔE00 5.74
Diarrhea
#9F8303
ΔE00 6.38
Shit Green
#758000
ΔE00 6.67
Baby Poop Green
#8F9805
ΔE00 6.90
Pea Soup
#929901
ΔE00 7.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F871F #1F278F
analogous
#8F4F1F #8F871F #5F8F1F
triadic
#8F871F #1F8F87 #871F8F
tetradic
#8F871F #1F8F4F #1F278F #8F1F5F
square
#8F871F #1F8F4F #1F278F #8F1F5F
split-complementary
#8F871F #1F5F8F #4F1F8F
monochromatic
#2A2809 #5D5814 #8F871F #C1B62A #D9CF4F
Accessibility & contrast
On white
3.71
#8F871F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.65
#8F871F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8F871F
5.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F871F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8F871F | 1.00 | 3.71 | 5.65 | 5.65 |
| #FFFFFF | 3.71 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.65 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.65 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#948206
Deuteranopia (green-blind)
#968727
Tritanopia (blue-blind)
#9A7D73
Achromatopsia (no color)
#858585
Design tokens & code
CSS
--color: #8f871f; /* rgb */ color: rgb(143, 135, 31); /* oklch */ color: oklch(61.2% 0.119 104.8);
Tailwind
colors: {
custom: {
50: '#b3a964',
500: '#8f871f',
950: '#000000',
},
}SCSS
$custom: #8f871f; $custom-light: #b3a964; $custom-dark: #000000;
JSON
{
"hex": "#8f871f",
"rgb": {
"r": 143,
"g": 135,
"b": 31
},
"hsl": {
"h": 55.714,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.612,
"c": 0.11919,
"h": 104.8
},
"luminance": 0.23267
}Semantic roles & 50–950 ramp
primary
#8F871F
secondary
#4E56BC
accent
#4CE740
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A