#8F7D1F#8F7D1F
#8F7D1F is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 59.0% C 0.111 H 97.8°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #8F7D1F |
|---|---|
| RGB | rgb(143, 125, 31) |
| HSL | hsl(50, 64%, 34%) |
| HSV | hsv(50, 78%, 56%) |
| CMYK | cmyk(0%, 12.6%, 78.3%, 43.9%) |
| CIE-LAB | lab(52.52, -3.44, 50.14) |
| CIE-LCH | lch(52.52, 50.26, 93.92°) |
| OKLab | oklab(58.95% -0.015 0.1097) |
| OKLCH | oklch(58.95% 0.111 97.8) |
| XYZ | xyz(18.9096, 20.6068, 4.2775) |
| Luminance | 0.2061 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 2.62
Hazel
#8E7618
ΔE00 3.01
Puke Brown
#947706
ΔE00 4.02
Poo
#8F7303
ΔE00 4.64
Diarrhea
#9F8303
ΔE00 4.85
Yellowish Brown
#9B7A01
ΔE00 4.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F7D1F #1F318F
analogous
#8F451F #8F7D1F #698F1F
triadic
#8F7D1F #1F8F7D #7D1F8F
tetradic
#8F7D1F #1F8F45 #1F318F #8F1F69
square
#8F7D1F #1F8F45 #1F318F #8F1F69
split-complementary
#8F7D1F #1F698F #451F8F
monochromatic
#2A2509 #5D5114 #8F7D1F #C1A92A #D9C34F
Accessibility & contrast
On white
4.10
#8F7D1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.12
#8F7D1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8F7D1F
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F7D1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8F7D1F | 1.00 | 4.10 | 5.12 | 5.12 |
| #FFFFFF | 4.10 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.12 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.12 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7A0B
Deuteranopia (green-blind)
#8F8025
Tritanopia (blue-blind)
#9B736B
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #8f7d1f; /* rgb */ color: rgb(143, 125, 31); /* oklch */ color: oklch(59.0% 0.111 97.8);
Tailwind
colors: {
custom: {
50: '#b3a263',
500: '#8f7d1f',
950: '#000000',
},
}SCSS
$custom: #8f7d1f; $custom-light: #b3a263; $custom-dark: #000000;
JSON
{
"hex": "#8f7d1f",
"rgb": {
"r": 143,
"g": 125,
"b": 31
},
"hsl": {
"h": 50.357,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.58952,
"c": 0.11068,
"h": 97.8
},
"luminance": 0.20606
}Semantic roles & 50–950 ramp
primary
#8F7D1F
secondary
#4E60BC
accent
#5BE740
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A