#8F7A18#8F7A18
#8F7A18 is a mid, moderate yellow. Relative luminance 0.198; OKLCH L 58.2% C 0.112 H 96.0°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).
Color values
| HEX | #8F7A18 |
|---|---|
| RGB | rgb(143, 122, 24) |
| HSL | hsl(49, 71%, 33%) |
| HSV | hsv(49, 83%, 56%) |
| CMYK | cmyk(0%, 14.7%, 83.2%, 43.9%) |
| CIE-LAB | lab(51.64, -2.03, 51.73) |
| CIE-LCH | lch(51.64, 51.77, 92.25°) |
| OKLab | oklab(58.25% -0.0116 0.1116) |
| OKLCH | oklch(58.25% 0.112 96) |
| XYZ | xyz(18.4531, 19.8257, 3.7188) |
| Luminance | 0.1983 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 1.74
Baby Poop
#937C00
ΔE00 2.02
Puke Brown
#947706
ΔE00 2.74
Poo
#8F7303
ΔE00 3.23
Yellowish Brown
#9B7A01
ΔE00 4.05
Diarrhea
#9F8303
ΔE00 4.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F7A18 #182D8F
analogous
#8F3F18 #8F7A18 #688F18
triadic
#8F7A18 #188F7A #7A188F
tetradic
#8F7A18 #188F3F #182D8F #8F1868
square
#8F7A18 #188F3F #182D8F #8F1868
split-complementary
#8F7A18 #18688F #3F188F
monochromatic
#262106 #5B4D0F #8F7A18 #C3A721 #DFC442
Accessibility & contrast
On white
4.23
#8F7A18 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.97
#8F7A18 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8F7A18
4.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F7A18 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8F7A18 | 1.00 | 4.23 | 4.97 | 4.97 |
| #FFFFFF | 4.23 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.97 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.97 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#8D7E1F
Tritanopia (blue-blind)
#9B7068
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #8f7a18; /* rgb */ color: rgb(143, 122, 24); /* oklch */ color: oklch(58.2% 0.112 96.0);
Tailwind
colors: {
custom: {
50: '#b4a05f',
500: '#8f7a18',
950: '#000000',
},
}SCSS
$custom: #8f7a18; $custom-light: #b4a05f; $custom-dark: #000000;
JSON
{
"hex": "#8f7a18",
"rgb": {
"r": 143,
"g": 122,
"b": 24
},
"hsl": {
"h": 49.412,
"s": 71.257,
"l": 32.745
},
"oklch": {
"l": 0.58246,
"c": 0.11219,
"h": 96
},
"luminance": 0.19825
}Semantic roles & 50–950 ramp
primary
#8F7A18
secondary
#4359C0
accent
#5AEE3A
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79