#9F8A21#9F8A21
#9F8A21 is a light, vivid yellow. Relative luminance 0.257; OKLCH L 63.4% C 0.120 H 97.1°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).
Color values
| HEX | #9F8A21 |
|---|---|
| RGB | rgb(159, 138, 33) |
| HSL | hsl(50, 66%, 38%) |
| HSV | hsv(50, 79%, 62%) |
| CMYK | cmyk(0%, 13.2%, 79.2%, 37.6%) |
| CIE-LAB | lab(57.71, -3.18, 54.78) |
| CIE-LCH | lch(57.71, 54.88, 93.33°) |
| OKLab | oklab(63.44% -0.0149 0.1192) |
| OKLCH | oklch(63.44% 0.12 97.1) |
| XYZ | xyz(23.6623, 25.6590, 5.1449) |
| Luminance | 0.2566 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 3.20
Dark Mustard
#A88905
ΔE00 3.40
Baby Poo
#AB9004
ΔE00 3.70
Baby Shit Brown
#AD900D
ΔE00 3.89
Yellowy Brown
#AE8B0C
ΔE00 4.55
Baby Poop
#937C00
ΔE00 5.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F8A21 #21369F
analogous
#9F4B21 #9F8A21 #759F21
triadic
#9F8A21 #219F8A #8A219F
tetradic
#9F8A21 #219F4B #21369F #9F2175
square
#9F8A21 #219F4B #21369F #9F2175
split-complementary
#9F8A21 #21759F #4B219F
monochromatic
#3A320C #6C5E16 #9F8A21 #D2B62C #DDC85D
Accessibility & contrast
On white
3.42
#9F8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.13
#9F8A21 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9F8A21
6.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F8A21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9F8A21 | 1.00 | 3.42 | 6.13 | 6.13 |
| #FFFFFF | 3.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.13 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.13 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#998708
Deuteranopia (green-blind)
#9E8E28
Tritanopia (blue-blind)
#AC7F76
Achromatopsia (no color)
#8B8B8B
Design tokens & code
CSS
--color: #9f8a21; /* rgb */ color: rgb(159, 138, 33); /* oklch */ color: oklch(63.4% 0.120 97.1);
Tailwind
colors: {
custom: {
50: '#bfab66',
500: '#9f8a21',
950: '#000000',
},
}SCSS
$custom: #9f8a21; $custom-light: #bfab66; $custom-dark: #000000;
JSON
{
"hex": "#9f8a21",
"rgb": {
"r": 159,
"g": 138,
"b": 33
},
"hsl": {
"h": 50,
"s": 65.625,
"l": 37.647
},
"oklch": {
"l": 0.6344,
"c": 0.12017,
"h": 97.1
},
"luminance": 0.25658
}Semantic roles & 50–950 ramp
primary
#9F8A21
secondary
#5A6BC2
accent
#5BE93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A