#402c01
a deep, electric yellow · warm · closest name: black
RGB
64, 44, 1
HSL
41°, 97%, 13%
CMYK
0, 31, 98, 75
Luminance
0.0289
Every format
| HEX | #402c01 |
| RGB | rgb(64, 44, 1) |
| HSL | hsl(41, 97%, 13%) |
| CMYK | cmyk(0%, 31%, 98%, 75%) |
| LAB | lab(19.6 4.9 27.7) |
| LCH | lch(19.6 28.1 80.0) |
| OKLCH | oklch(0.309 0.063 81.1) |
Copy-ready code
/* CSS */
color: #402c01;
background-color: #402c01;
/* Tailwind (arbitrary) */
class="text-[#402c01] bg-[#402c01]"
/* SCSS */
$brand: #402c01;
/* SwiftUI */
Color(red: 0.251, green: 0.173, blue: 0.004)
/* Android */
Color.parseColor("#402c01")Accessibility — WCAG contrast
Aa
#402c01 on white: 13.30:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#402c01 on black: 1.58:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.1%
Green17.3%
Blue0.4%
CMYK percentages
Cyan0.0%
Magenta31.2%
Yellow98.4%
Key (black)74.9%
Color previews
#402c01 text on a black background
contrast 1.58:1
Card sample
#402c01 text on a white background
contrast 13.30:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #402c01;
Background color
Panel with #402c01 background
background-color: #402c01;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #402c01;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(64, 44, 1, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 44, 1, 0.45);
Border & gradient
Gradient panel
border: 3px solid #402c01; background: linear-gradient(135deg, #402c01, #2A4001);