#502a21
a deep, soft red · warm · closest name: black
RGB
80, 42, 33
HSL
12°, 42%, 22%
CMYK
0, 48, 59, 69
Luminance
0.0347
Every format
| HEX | #502a21 |
| RGB | rgb(80, 42, 33) |
| HSL | hsl(12, 42%, 22%) |
| CMYK | cmyk(0%, 48%, 59%, 69%) |
| LAB | lab(21.8 16.6 13.6) |
| LCH | lch(21.8 21.4 39.4) |
| OKLCH | oklch(0.333 0.059 34.3) |
Copy-ready code
/* CSS */
color: #502a21;
background-color: #502a21;
/* Tailwind (arbitrary) */
class="text-[#502a21] bg-[#502a21]"
/* SCSS */
$brand: #502a21;
/* SwiftUI */
Color(red: 0.314, green: 0.165, blue: 0.129)
/* Android */
Color.parseColor("#502a21")Accessibility — WCAG contrast
Aa
#502a21 on white: 12.39:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#502a21 on black: 1.69:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.4%
Green16.5%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta47.5%
Yellow58.8%
Key (black)68.6%
Color previews
#502a21 text on a black background
contrast 1.69:1
Card sample
#502a21 text on a white background
contrast 12.39:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #502a21;
Background color
Panel with #502a21 background
background-color: #502a21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #502a21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(80, 42, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(80, 42, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #502a21; background: linear-gradient(135deg, #502a21, #504921);