#9F8921#9F8921
#9F8921 is a light, moderate yellow. Relative luminance 0.254; OKLCH L 63.2% C 0.119 H 96.4°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).
Color values
| HEX | #9F8921 |
|---|---|
| RGB | rgb(159, 137, 33) |
| HSL | hsl(50, 66%, 38%) |
| HSV | hsv(50, 79%, 62%) |
| CMYK | cmyk(0%, 13.8%, 79.2%, 37.6%) |
| CIE-LAB | lab(57.44, -2.63, 54.53) |
| CIE-LCH | lch(57.44, 54.60, 92.77°) |
| OKLab | oklab(63.22% -0.0134 0.1187) |
| OKLCH | oklch(63.22% 0.119 96.4) |
| XYZ | xyz(23.5195, 25.3733, 5.0973) |
| Luminance | 0.2537 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 2.87
Dark Mustard
#A88905
ΔE00 3.21
Baby Poo
#AB9004
ΔE00 3.82
Baby Shit Brown
#AD900D
ΔE00 3.95
Yellowy Brown
#AE8B0C
ΔE00 4.38
Baby Poop
#937C00
ΔE00 4.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F8921 #21379F
analogous
#9F4A21 #9F8921 #769F21
triadic
#9F8921 #219F89 #89219F
tetradic
#9F8921 #219F4A #21379F #9F2176
square
#9F8921 #219F4A #21379F #9F2176
split-complementary
#9F8921 #21769F #4A219F
monochromatic
#3A320C #6C5D16 #9F8921 #D2B52C #DDC75D
Accessibility & contrast
On white
3.46
#9F8921 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.07
#9F8921 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9F8921
6.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F8921 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9F8921 | 1.00 | 3.46 | 6.07 | 6.07 |
| #FFFFFF | 3.46 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.07 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.07 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#988609
Deuteranopia (green-blind)
#9D8D28
Tritanopia (blue-blind)
#AC7E75
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #9f8921; /* rgb */ color: rgb(159, 137, 33); /* oklch */ color: oklch(63.2% 0.119 96.4);
Tailwind
colors: {
custom: {
50: '#bfab66',
500: '#9f8921',
950: '#000000',
},
}SCSS
$custom: #9f8921; $custom-light: #bfab66; $custom-dark: #000000;
JSON
{
"hex": "#9f8921",
"rgb": {
"r": 159,
"g": 137,
"b": 33
},
"hsl": {
"h": 49.524,
"s": 65.625,
"l": 37.647
},
"oklch": {
"l": 0.63223,
"c": 0.11946,
"h": 96.4
},
"luminance": 0.25372
}Semantic roles & 50–950 ramp
primary
#9F8921
secondary
#5A6CC2
accent
#5DE93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A