#8F8731#8F8731
#8F8731 is a mid, moderate yellow. Relative luminance 0.234; OKLCH L 61.3% C 0.107 H 104.0°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).
Color values
| HEX | #8F8731 |
|---|---|
| RGB | rgb(143, 135, 49) |
| HSL | hsl(55, 49%, 38%) |
| HSV | hsv(55, 66%, 56%) |
| CMYK | cmyk(0%, 5.6%, 65.7%, 43.9%) |
| CIE-LAB | lab(55.47, -7.99, 45.72) |
| CIE-LCH | lch(55.47, 46.41, 99.91°) |
| OKLab | oklab(61.34% -0.0258 0.1037) |
| OKLCH | oklch(61.34% 0.107 104) |
| XYZ | xyz(20.5468, 23.3901, 6.3376) |
| Luminance | 0.2339 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 5.22
Drab
#828344
ΔE00 5.46
Dark Khaki
#9B8F55
ΔE00 6.20
Baby Poop
#937C00
ΔE00 6.58
Diarrhea
#9F8303
ΔE00 7.22
Shit Green
#758000
ΔE00 7.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F8731 #31398F
analogous
#8F5831 #8F8731 #688F31
triadic
#8F8731 #318F87 #87318F
tetradic
#8F8731 #318F58 #31398F #8F3168
square
#8F8731 #318F58 #31398F #8F3168
split-complementary
#8F8731 #31688F #58318F
monochromatic
#343112 #615C21 #8F8731 #BDB241 #CDC56D
Accessibility & contrast
On white
3.70
#8F8731 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.68
#8F8731 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8F8731
5.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F8731 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8F8731 | 1.00 | 3.70 | 5.68 | 5.68 |
| #FFFFFF | 3.70 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.68 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.68 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#938226
Deuteranopia (green-blind)
#958736
Tritanopia (blue-blind)
#997E75
Achromatopsia (no color)
#858585
Design tokens & code
CSS
--color: #8f8731; /* rgb */ color: rgb(143, 135, 49); /* oklch */ color: oklch(61.3% 0.107 104.0);
Tailwind
colors: {
custom: {
50: '#b2a96e',
500: '#8f8731',
950: '#000000',
},
}SCSS
$custom: #8f8731; $custom-light: #b2a96e; $custom-dark: #000000;
JSON
{
"hex": "#8f8731",
"rgb": {
"r": 143,
"g": 135,
"b": 49
},
"hsl": {
"h": 54.894,
"s": 48.958,
"l": 37.647
},
"oklch": {
"l": 0.61339,
"c": 0.10683,
"h": 104
},
"luminance": 0.23389
}Semantic roles & 50–950 ramp
primary
#8F8731
secondary
#676EB5
accent
#5BD94F
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#110F07
muted
#807F7A