#8F871A#8F871A
#8F871A is a mid, vivid yellow. Relative luminance 0.232; OKLCH L 61.2% C 0.122 H 105.0°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).
Color values
| HEX | #8F871A |
|---|---|
| RGB | rgb(143, 135, 26) |
| HSL | hsl(56, 69%, 33%) |
| HSV | hsv(56, 82%, 56%) |
| CMYK | cmyk(0%, 5.6%, 81.8%, 43.9%) |
| CIE-LAB | lab(55.32, -9.14, 54.33) |
| CIE-LCH | lch(55.32, 55.10, 99.55°) |
| OKLab | oklab(61.17% -0.0315 0.1176) |
| OKLCH | oklch(61.17% 0.122 105) |
| XYZ | xyz(20.1790, 23.2430, 4.4005) |
| Luminance | 0.2324 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.99
Baby Poop
#937C00
ΔE00 5.64
Diarrhea
#9F8303
ΔE00 6.27
Shit Green
#758000
ΔE00 6.65
Baby Poop Green
#8F9805
ΔE00 6.76
Pea Soup
#929901
ΔE00 6.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F871A #1A228F
analogous
#8F4C1A #8F871A #5D8F1A
triadic
#8F871A #1A8F87 #871A8F
tetradic
#8F871A #1A8F4C #1A228F #8F1A5D
square
#8F871A #1A8F4C #1A228F #8F1A5D
split-complementary
#8F871A #1A5D8F #4C1A8F
monochromatic
#272507 #5B5611 #8F871A #C3B823 #DDD346
Accessibility & contrast
On white
3.72
#8F871A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.65
#8F871A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8F871A
5.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F871A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8F871A | 1.00 | 3.72 | 5.65 | 5.65 |
| #FFFFFF | 3.72 | 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)
#948200
Deuteranopia (green-blind)
#968723
Tritanopia (blue-blind)
#9A7D73
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #8f871a; /* rgb */ color: rgb(143, 135, 26); /* oklch */ color: oklch(61.2% 0.122 105.0);
Tailwind
colors: {
custom: {
50: '#b3a962',
500: '#8f871a',
950: '#000000',
},
}SCSS
$custom: #8f871a; $custom-light: #b3a962; $custom-dark: #000000;
JSON
{
"hex": "#8f871a",
"rgb": {
"r": 143,
"g": 135,
"b": 26
},
"hsl": {
"h": 55.897,
"s": 69.231,
"l": 33.137
},
"oklch": {
"l": 0.61172,
"c": 0.12176,
"h": 105
},
"luminance": 0.23242
}Semantic roles & 50–950 ramp
primary
#8F871A
secondary
#464EBF
accent
#48EC3C
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A