#8F7E1F#8F7E1F
#8F7E1F is a mid, moderate yellow. Relative luminance 0.209; OKLCH L 59.2% C 0.111 H 98.5°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).
Color values
| HEX | #8F7E1F |
|---|---|
| RGB | rgb(143, 126, 31) |
| HSL | hsl(51, 64%, 34%) |
| HSV | hsv(51, 78%, 56%) |
| CMYK | cmyk(0%, 11.9%, 78.3%, 43.9%) |
| CIE-LAB | lab(52.80, -4.00, 50.40) |
| CIE-LCH | lch(52.80, 50.56, 94.53°) |
| OKLab | oklab(59.17% -0.0165 0.1102) |
| OKLCH | oklch(59.17% 0.111 98.5) |
| XYZ | xyz(19.0368, 20.8612, 4.3200) |
| Luminance | 0.2086 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 2.77
Hazel
#8E7618
ΔE00 3.47
Puke Brown
#947706
ΔE00 4.40
Diarrhea
#9F8303
ΔE00 4.84
Poo
#8F7303
ΔE00 5.06
Yellowish Brown
#9B7A01
ΔE00 5.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F7E1F #1F308F
analogous
#8F461F #8F7E1F #688F1F
triadic
#8F7E1F #1F8F7E #7E1F8F
tetradic
#8F7E1F #1F8F46 #1F308F #8F1F68
square
#8F7E1F #1F8F46 #1F308F #8F1F68
split-complementary
#8F7E1F #1F688F #461F8F
monochromatic
#2A2509 #5D5214 #8F7E1F #C1AA2A #D9C44F
Accessibility & contrast
On white
4.06
#8F7E1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.17
#8F7E1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8F7E1F
5.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F7E1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8F7E1F | 1.00 | 4.06 | 5.17 | 5.17 |
| #FFFFFF | 4.06 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.17 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.17 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8B7B0B
Deuteranopia (green-blind)
#908126
Tritanopia (blue-blind)
#9B746C
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #8f7e1f; /* rgb */ color: rgb(143, 126, 31); /* oklch */ color: oklch(59.2% 0.111 98.5);
Tailwind
colors: {
custom: {
50: '#b3a363',
500: '#8f7e1f',
950: '#000000',
},
}SCSS
$custom: #8f7e1f; $custom-light: #b3a363; $custom-dark: #000000;
JSON
{
"hex": "#8f7e1f",
"rgb": {
"r": 143,
"g": 126,
"b": 31
},
"hsl": {
"h": 50.893,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.59174,
"c": 0.11145,
"h": 98.5
},
"luminance": 0.2086
}Semantic roles & 50–950 ramp
primary
#8F7E1F
secondary
#4E5FBC
accent
#5AE740
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A