#8F7B18#8F7B18
#8F7B18 is a mid, moderate yellow. Relative luminance 0.201; OKLCH L 58.5% C 0.113 H 96.7°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).
Color values
| HEX | #8F7B18 |
|---|---|
| RGB | rgb(143, 123, 24) |
| HSL | hsl(50, 71%, 33%) |
| HSV | hsv(50, 83%, 56%) |
| CMYK | cmyk(0%, 14%, 83.2%, 43.9%) |
| CIE-LAB | lab(51.92, -2.59, 51.97) |
| CIE-LCH | lch(51.92, 52.04, 92.85°) |
| OKLab | oklab(58.47% -0.0132 0.1121) |
| OKLCH | oklch(58.47% 0.113 96.7) |
| XYZ | xyz(18.5765, 20.0725, 3.7599) |
| Luminance | 0.2007 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 1.94
Hazel
#8E7618
ΔE00 2.20
Puke Brown
#947706
ΔE00 3.10
Poo
#8F7303
ΔE00 3.66
Yellowish Brown
#9B7A01
ΔE00 4.27
Diarrhea
#9F8303
ΔE00 4.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F7B18 #182C8F
analogous
#8F4018 #8F7B18 #678F18
triadic
#8F7B18 #188F7B #7B188F
tetradic
#8F7B18 #188F40 #182C8F #8F1867
square
#8F7B18 #188F40 #182C8F #8F1867
split-complementary
#8F7B18 #18678F #40188F
monochromatic
#262106 #5B4E0F #8F7B18 #C3A821 #DFC542
Accessibility & contrast
On white
4.19
#8F7B18 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.01
#8F7B18 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8F7B18
5.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F7B18 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8F7B18 | 1.00 | 4.19 | 5.01 | 5.01 |
| #FFFFFF | 4.19 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.01 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.01 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#8E7F20
Tritanopia (blue-blind)
#9B7169
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #8f7b18; /* rgb */ color: rgb(143, 123, 24); /* oklch */ color: oklch(58.5% 0.113 96.7);
Tailwind
colors: {
custom: {
50: '#b4a05f',
500: '#8f7b18',
950: '#000000',
},
}SCSS
$custom: #8f7b18; $custom-light: #b4a05f; $custom-dark: #000000;
JSON
{
"hex": "#8f7b18",
"rgb": {
"r": 143,
"g": 123,
"b": 24
},
"hsl": {
"h": 49.916,
"s": 71.257,
"l": 32.745
},
"oklch": {
"l": 0.58467,
"c": 0.11288,
"h": 96.7
},
"luminance": 0.20072
}Semantic roles & 50–950 ramp
primary
#8F7B18
secondary
#4358C0
accent
#58EE3A
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79