#9A8721#9A8721
#9A8721 is a light, moderate yellow. Relative luminance 0.243; OKLCH L 62.3% C 0.118 H 98.0°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).
Color values
| HEX | #9A8721 |
|---|---|
| RGB | rgb(154, 135, 33) |
| HSL | hsl(51, 65%, 37%) |
| HSV | hsv(51, 79%, 60%) |
| CMYK | cmyk(0%, 12.3%, 78.6%, 39.6%) |
| CIE-LAB | lab(56.40, -3.82, 53.40) |
| CIE-LCH | lch(56.40, 53.54, 94.09°) |
| OKLab | oklab(62.28% -0.0165 0.1165) |
| OKLCH | oklch(62.28% 0.118 98) |
| XYZ | xyz(22.2661, 24.3089, 4.9578) |
| Luminance | 0.2431 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 3.28
Baby Poop
#937C00
ΔE00 4.17
Dark Mustard
#A88905
ΔE00 4.32
Baby Poo
#AB9004
ΔE00 4.96
Baby Shit Brown
#AD900D
ΔE00 5.17
Yellowy Brown
#AE8B0C
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A8721 #21349A
analogous
#9A4B21 #9A8721 #719A21
triadic
#9A8721 #219A87 #87219A
tetradic
#9A8721 #219A4B #21349A #9A2171
square
#9A8721 #219A4B #21349A #9A2171
split-complementary
#9A8721 #21719A #4B219A
monochromatic
#352F0B #685B16 #9A8721 #CCB32C #DCC75A
Accessibility & contrast
On white
3.58
#9A8721 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.86
#9A8721 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9A8721
5.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A8721 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9A8721 | 1.00 | 3.58 | 5.86 | 5.86 |
| #FFFFFF | 3.58 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.86 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.86 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#95840A
Deuteranopia (green-blind)
#9A8A28
Tritanopia (blue-blind)
#A77C74
Achromatopsia (no color)
#878787
Design tokens & code
CSS
--color: #9a8721; /* rgb */ color: rgb(154, 135, 33); /* oklch */ color: oklch(62.3% 0.118 98.0);
Tailwind
colors: {
custom: {
50: '#bca965',
500: '#9a8721',
950: '#000000',
},
}SCSS
$custom: #9a8721; $custom-light: #bca965; $custom-dark: #000000;
JSON
{
"hex": "#9a8721",
"rgb": {
"r": 154,
"g": 135,
"b": 33
},
"hsl": {
"h": 50.579,
"s": 64.706,
"l": 36.667
},
"oklch": {
"l": 0.62283,
"c": 0.11768,
"h": 98
},
"luminance": 0.24308
}Semantic roles & 50–950 ramp
primary
#9A8721
secondary
#5767C0
accent
#5AE840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#120F06
muted
#817F7A