#404000
a deep, electric yellow · cool · closest name: olive
RGB
64, 64, 0
HSL
60°, 100%, 13%
CMYK
0, 0, 100, 75
Luminance
0.0476
Every format
| HEX | #404000 |
| RGB | rgb(64, 64, 0) |
| HSL | hsl(60, 100%, 13%) |
| CMYK | cmyk(0%, 0%, 100%, 75%) |
| LAB | lab(26.0 -8.0 34.7) |
| LCH | lch(26.0 35.6 103.0) |
| OKLCH | oklch(0.360 0.078 109.8) |
Copy-ready code
/* CSS */
color: #404000;
background-color: #404000;
/* Tailwind (arbitrary) */
class="text-[#404000] bg-[#404000]"
/* SCSS */
$brand: #404000;
/* SwiftUI */
Color(red: 0.251, green: 0.251, blue: 0.000)
/* Android */
Color.parseColor("#404000")Accessibility — WCAG contrast
Aa
#404000 on white: 10.76:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#404000 on black: 1.95:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.1%
Green25.1%
Blue0.0%
CMYK percentages
Cyan0.0%
Magenta0.0%
Yellow100.0%
Key (black)74.9%
Color previews
#404000 text on a black background
contrast 1.95:1
Card sample
#404000 text on a white background
contrast 10.76:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #404000;
Background color
Panel with #404000 background
background-color: #404000;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #404000;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(64, 64, 0, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 64, 0, 0.45);
Border & gradient
Gradient panel
border: 3px solid #404000; background: linear-gradient(135deg, #404000, #154000);