#404021
a deep, soft yellow · cool · closest name: darkslategray
RGB
64, 64, 33
HSL
60°, 32%, 19%
CMYK
0, 0, 48, 75
Luminance
0.0487
Every format
| HEX | #404021 |
| RGB | rgb(64, 64, 33) |
| HSL | hsl(60, 32%, 19%) |
| CMYK | cmyk(0%, 0%, 48%, 75%) |
| LAB | lab(26.4 -5.5 18.9) |
| LCH | lch(26.4 19.7 106.1) |
| OKLCH | oklch(0.363 0.048 108.6) |
Copy-ready code
/* CSS */
color: #404021;
background-color: #404021;
/* Tailwind (arbitrary) */
class="text-[#404021] bg-[#404021]"
/* SCSS */
$brand: #404021;
/* SwiftUI */
Color(red: 0.251, green: 0.251, blue: 0.129)
/* Android */
Color.parseColor("#404021")Accessibility — WCAG contrast
Aa
#404021 on white: 10.64:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#404021 on black: 1.97:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.1%
Green25.1%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta0.0%
Yellow48.4%
Key (black)74.9%
Color previews
#404021 text on a black background
contrast 1.97:1
Card sample
#404021 text on a white background
contrast 10.64:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #404021;
Background color
Panel with #404021 background
background-color: #404021;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #404021;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(64, 64, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 64, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #404021; background: linear-gradient(135deg, #404021, #2B4021);