#8F7C17#8F7C17
#8F7C17 is a mid, moderate yellow. Relative luminance 0.203; OKLCH L 58.7% C 0.114 H 97.6°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #8F7C17 |
|---|---|
| RGB | rgb(143, 124, 23) |
| HSL | hsl(51, 72%, 33%) |
| HSV | hsv(51, 84%, 56%) |
| CMYK | cmyk(0%, 13.3%, 83.9%, 43.9%) |
| CIE-LAB | lab(52.19, -3.18, 52.52) |
| CIE-LCH | lch(52.19, 52.62, 93.47°) |
| OKLab | oklab(58.68% -0.015 0.1131) |
| OKLCH | oklch(58.68% 0.114 97.6) |
| XYZ | xyz(18.6910, 20.3178, 3.7477) |
| Luminance | 0.2032 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 1.90
Hazel
#8E7618
ΔE00 2.69
Puke Brown
#947706
ΔE00 3.47
Poo
#8F7303
ΔE00 4.09
Yellowish Brown
#9B7A01
ΔE00 4.52
Diarrhea
#9F8303
ΔE00 4.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F7C17 #172A8F
analogous
#8F4017 #8F7C17 #668F17
triadic
#8F7C17 #178F7C #7C178F
tetradic
#8F7C17 #178F40 #172A8F #8F1766
square
#8F7C17 #178F40 #172A8F #8F1766
split-complementary
#8F7C17 #17668F #40178F
monochromatic
#262106 #5A4E0F #8F7C17 #C4AA1F #E0C740
Accessibility & contrast
On white
4.15
#8F7C17 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.06
#8F7C17 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8F7C17
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F7C17 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8F7C17 | 1.00 | 4.15 | 5.06 | 5.06 |
| #FFFFFF | 4.15 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.06 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.06 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#8E7F1F
Tritanopia (blue-blind)
#9B726A
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #8f7c17; /* rgb */ color: rgb(143, 124, 23); /* oklch */ color: oklch(58.7% 0.114 97.6);
Tailwind
colors: {
custom: {
50: '#b4a15f',
500: '#8f7c17',
950: '#000000',
},
}SCSS
$custom: #8f7c17; $custom-light: #b4a15f; $custom-dark: #000000;
JSON
{
"hex": "#8f7c17",
"rgb": {
"r": 143,
"g": 124,
"b": 23
},
"hsl": {
"h": 50.5,
"s": 72.289,
"l": 32.549
},
"oklch": {
"l": 0.58684,
"c": 0.11407,
"h": 97.6
},
"luminance": 0.20317
}Semantic roles & 50–950 ramp
primary
#8F7C17
secondary
#4155C1
accent
#56EF39
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79