#8F7D21#8F7D21
#8F7D21 is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 59.0% C 0.109 H 97.6°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #8F7D21 |
|---|---|
| RGB | rgb(143, 125, 33) |
| HSL | hsl(50, 63%, 35%) |
| HSV | hsv(50, 77%, 56%) |
| CMYK | cmyk(0%, 12.6%, 76.9%, 43.9%) |
| CIE-LAB | lab(52.53, -3.35, 49.41) |
| CIE-LCH | lch(52.53, 49.53, 93.88°) |
| OKLab | oklab(58.97% -0.0145 0.1085) |
| OKLCH | oklch(58.97% 0.109 97.6) |
| XYZ | xyz(18.9368, 20.6177, 4.4207) |
| Luminance | 0.2062 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 2.80
Hazel
#8E7618
ΔE00 3.01
Puke Brown
#947706
ΔE00 4.08
Poo
#8F7303
ΔE00 4.69
Diarrhea
#9F8303
ΔE00 4.96
Yellowish Brown
#9B7A01
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F7D21 #21338F
analogous
#8F4621 #8F7D21 #6A8F21
triadic
#8F7D21 #218F7D #7D218F
tetradic
#8F7D21 #218F46 #21338F #8F216A
square
#8F7D21 #218F46 #21338F #8F216A
split-complementary
#8F7D21 #216A8F #46218F
monochromatic
#2C260A #5D5216 #8F7D21 #C1A82C #D7C253
Accessibility & contrast
On white
4.10
#8F7D21 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.12
#8F7D21 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8F7D21
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F7D21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8F7D21 | 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)
#8A7A10
Deuteranopia (green-blind)
#8F8027
Tritanopia (blue-blind)
#9B736B
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #8f7d21; /* rgb */ color: rgb(143, 125, 33); /* oklch */ color: oklch(59.0% 0.109 97.6);
Tailwind
colors: {
custom: {
50: '#b3a264',
500: '#8f7d21',
950: '#000000',
},
}SCSS
$custom: #8f7d21; $custom-light: #b3a264; $custom-dark: #000000;
JSON
{
"hex": "#8f7d21",
"rgb": {
"r": 143,
"g": 125,
"b": 33
},
"hsl": {
"h": 50.182,
"s": 62.5,
"l": 34.51
},
"oklch": {
"l": 0.58965,
"c": 0.10949,
"h": 97.6
},
"luminance": 0.20617
}Semantic roles & 50–950 ramp
primary
#8F7D21
secondary
#5162BB
accent
#5DE642
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A