#9F8221#9F8221
#9F8221 is a mid, moderate yellow. Relative luminance 0.234; OKLCH L 61.7% C 0.115 H 91.2°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).
Color values
| HEX | #9F8221 |
|---|---|
| RGB | rgb(159, 130, 33) |
| HSL | hsl(46, 66%, 38%) |
| HSV | hsv(46, 79%, 62%) |
| CMYK | cmyk(0%, 18.2%, 79.2%, 37.6%) |
| CIE-LAB | lab(55.53, 1.24, 52.79) |
| CIE-LCH | lch(55.53, 52.81, 88.65°) |
| OKLab | oklab(61.72% -0.0023 0.115) |
| OKLCH | oklch(61.72% 0.115 91.2) |
| XYZ | xyz(22.5565, 23.4474, 4.7763) |
| Luminance | 0.2345 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 2.29
Yellowish Brown
#9B7A01
ΔE00 3.24
Dark Mustard
#A88905
ΔE00 3.64
Baby Poop
#937C00
ΔE00 3.81
Puke Brown
#947706
ΔE00 4.24
Yellowy Brown
#AE8B0C
ΔE00 4.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F8221 #213E9F
analogous
#9F4321 #9F8221 #7D9F21
triadic
#9F8221 #219F82 #82219F
tetradic
#9F8221 #219F43 #213E9F #9F217D
square
#9F8221 #219F43 #213E9F #9F217D
split-complementary
#9F8221 #217D9F #43219F
monochromatic
#3A2F0C #6C5916 #9F8221 #D2AB2C #DDC05D
Accessibility & contrast
On white
3.69
#9F8221 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.69
#9F8221 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9F8221
5.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F8221 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9F8221 | 1.00 | 3.69 | 5.69 | 5.69 |
| #FFFFFF | 3.69 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.69 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.69 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#91800D
Deuteranopia (green-blind)
#988827
Tritanopia (blue-blind)
#AD7770
Achromatopsia (no color)
#858585
Design tokens & code
CSS
--color: #9f8221; /* rgb */ color: rgb(159, 130, 33); /* oklch */ color: oklch(61.7% 0.115 91.2);
Tailwind
colors: {
custom: {
50: '#c0a565',
500: '#9f8221',
950: '#000000',
},
}SCSS
$custom: #9f8221; $custom-light: #c0a565; $custom-dark: #000000;
JSON
{
"hex": "#9f8221",
"rgb": {
"r": 159,
"g": 130,
"b": 33
},
"hsl": {
"h": 46.19,
"s": 65.625,
"l": 37.647
},
"oklch": {
"l": 0.61716,
"c": 0.11499,
"h": 91.2
},
"luminance": 0.23446
}Semantic roles & 50–950 ramp
primary
#9F8221
secondary
#5A72C2
accent
#66E93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A