#997F20#997F20
#997F20 is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.4% C 0.113 H 92.7°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).
Color values
| HEX | #997F20 |
|---|---|
| RGB | rgb(153, 127, 32) |
| HSL | hsl(47, 65%, 36%) |
| HSV | hsv(47, 79%, 60%) |
| CMYK | cmyk(0%, 17%, 79.1%, 40%) |
| CIE-LAB | lab(54.09, 0.12, 51.60) |
| CIE-LCH | lch(54.09, 51.60, 89.87°) |
| OKLab | oklab(60.43% -0.0053 0.1125) |
| OKLCH | oklch(60.43% 0.113 92.7) |
| XYZ | xyz(20.9882, 22.0566, 4.5181) |
| Luminance | 0.2205 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 2.68
Diarrhea
#9F8303
ΔE00 2.90
Yellowish Brown
#9B7A01
ΔE00 2.97
Puke Brown
#947706
ΔE00 3.18
Hazel
#8E7618
ΔE00 3.63
Poo
#8F7303
ΔE00 4.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#997F20 #203A99
analogous
#994320 #997F20 #779920
triadic
#997F20 #20997F #7F2099
tetradic
#997F20 #209943 #203A99 #992077
square
#997F20 #209943 #203A99 #992077
split-complementary
#997F20 #207799 #432099
monochromatic
#342B0B #665515 #997F20 #CCA92B #DCBF57
Accessibility & contrast
On white
3.88
#997F20 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.41
#997F20 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #997F20
5.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##997F20 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##997F20 | 1.00 | 3.88 | 5.41 | 5.41 |
| #FFFFFF | 3.88 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.41 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.41 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8E7D0C
Deuteranopia (green-blind)
#948426
Tritanopia (blue-blind)
#A6746D
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #997f20; /* rgb */ color: rgb(153, 127, 32); /* oklch */ color: oklch(60.4% 0.113 92.7);
Tailwind
colors: {
custom: {
50: '#bba364',
500: '#997f20',
950: '#000000',
},
}SCSS
$custom: #997f20; $custom-light: #bba364; $custom-dark: #000000;
JSON
{
"hex": "#997f20",
"rgb": {
"r": 153,
"g": 127,
"b": 32
},
"hsl": {
"h": 47.107,
"s": 65.405,
"l": 36.275
},
"oklch": {
"l": 0.60431,
"c": 0.11263,
"h": 92.7
},
"luminance": 0.22055
}Semantic roles & 50–950 ramp
primary
#997F20
secondary
#556CC0
accent
#64E83F
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#120F06
muted
#817F7A