#9F8D21#9F8D21
#9F8D21 is a light, vivid yellow. Relative luminance 0.265; OKLCH L 64.1% C 0.122 H 99.2°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).
Color values
| HEX | #9F8D21 |
|---|---|
| RGB | rgb(159, 141, 33) |
| HSL | hsl(51, 66%, 38%) |
| HSV | hsv(51, 79%, 62%) |
| CMYK | cmyk(0%, 11.3%, 79.2%, 37.6%) |
| CIE-LAB | lab(58.54, -4.82, 55.53) |
| CIE-LCH | lch(58.54, 55.74, 94.96°) |
| OKLab | oklab(64.1% -0.0196 0.1209) |
| OKLCH | oklch(64.1% 0.122 99.2) |
| XYZ | xyz(24.0987, 26.5317, 5.2903) |
| Luminance | 0.2653 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poo
#AB9004
ΔE00 3.64
Baby Shit Brown
#AD900D
ΔE00 3.98
Dark Mustard
#A88905
ΔE00 4.17
Diarrhea
#9F8303
ΔE00 4.32
Brown Yellow
#B29705
ΔE00 5.20
Yellowy Brown
#AE8B0C
ΔE00 5.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F8D21 #21339F
analogous
#9F4E21 #9F8D21 #729F21
triadic
#9F8D21 #219F8D #8D219F
tetradic
#9F8D21 #219F4E #21339F #9F2172
square
#9F8D21 #219F4E #21339F #9F2172
split-complementary
#9F8D21 #21729F #4E219F
monochromatic
#3A330C #6C6016 #9F8D21 #D2BA2C #DDCB5D
Accessibility & contrast
On white
3.33
#9F8D21 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.31
#9F8D21 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9F8D21
6.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F8D21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9F8D21 | 1.00 | 3.33 | 6.31 | 6.31 |
| #FFFFFF | 3.33 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.31 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.31 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9B8906
Deuteranopia (green-blind)
#A09029
Tritanopia (blue-blind)
#AC8279
Achromatopsia (no color)
#8D8D8D
Design tokens & code
CSS
--color: #9f8d21; /* rgb */ color: rgb(159, 141, 33); /* oklch */ color: oklch(64.1% 0.122 99.2);
Tailwind
colors: {
custom: {
50: '#bfae66',
500: '#9f8d21',
950: '#000000',
},
}SCSS
$custom: #9f8d21; $custom-light: #bfae66; $custom-dark: #000000;
JSON
{
"hex": "#9f8d21",
"rgb": {
"r": 159,
"g": 141,
"b": 33
},
"hsl": {
"h": 51.429,
"s": 65.625,
"l": 37.647
},
"oklch": {
"l": 0.64095,
"c": 0.12242,
"h": 99.2
},
"luminance": 0.2653
}Semantic roles & 50–950 ramp
primary
#9F8D21
secondary
#5A69C2
accent
#57E93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A