#997B21#997B21
#997B21 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.6% C 0.110 H 89.3°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).
Color values
| HEX | #997B21 |
|---|---|
| RGB | rgb(153, 123, 33) |
| HSL | hsl(45, 65%, 36%) |
| HSV | hsv(45, 78%, 60%) |
| CMYK | cmyk(0%, 19.6%, 78.4%, 40%) |
| CIE-LAB | lab(53.00, 2.40, 50.23) |
| CIE-LCH | lch(53.00, 50.28, 87.26°) |
| OKLab | oklab(59.58% 0.0013 0.1098) |
| OKLCH | oklch(59.58% 0.11 89.3) |
| XYZ | xyz(20.4956, 21.0494, 4.4220) |
| Luminance | 0.2105 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Yellowish Brown
#9B7A01
ΔE00 2.39
Puke Brown
#947706
ΔE00 2.50
Hazel
#8E7618
ΔE00 3.14
Baby Poop
#937C00
ΔE00 3.65
Poo
#8F7303
ΔE00 3.73
Diarrhea
#9F8303
ΔE00 4.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#997B21 #213F99
analogous
#993F21 #997B21 #7B9921
triadic
#997B21 #21997B #7B2199
tetradic
#997B21 #21993F #213F99 #99217B
square
#997B21 #21993F #213F99 #99217B
split-complementary
#997B21 #217B99 #3F2199
monochromatic
#342A0B #675316 #997B21 #CBA32C #DBBB59
Accessibility & contrast
On white
4.03
#997B21 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.21
#997B21 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #997B21
5.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##997B21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##997B21 | 1.00 | 4.03 | 5.21 | 5.21 |
| #FFFFFF | 4.03 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.21 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.21 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7A10
Deuteranopia (green-blind)
#918226
Tritanopia (blue-blind)
#A6706A
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #997b21; /* rgb */ color: rgb(153, 123, 33); /* oklch */ color: oklch(59.6% 0.110 89.3);
Tailwind
colors: {
custom: {
50: '#bba064',
500: '#997b21',
950: '#000000',
},
}SCSS
$custom: #997b21; $custom-light: #bba064; $custom-dark: #000000;
JSON
{
"hex": "#997b21",
"rgb": {
"r": 153,
"g": 123,
"b": 33
},
"hsl": {
"h": 45,
"s": 64.516,
"l": 36.471
},
"oklch": {
"l": 0.59579,
"c": 0.10979,
"h": 89.3
},
"luminance": 0.21048
}Semantic roles & 50–950 ramp
primary
#997B21
secondary
#5671BF
accent
#6AE840
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E06
muted
#817E7A