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