#540c21
a deep, electric magenta / pink · warm · closest name: maroon
RGB
84, 12, 33
HSL
343°, 75%, 19%
CMYK
0, 86, 61, 67
Luminance
0.0226
Every format
| HEX | #540c21 |
| RGB | rgb(84, 12, 33) |
| HSL | hsl(343, 75%, 19%) |
| CMYK | cmyk(0%, 86%, 61%, 67%) |
| LAB | lab(16.8 33.5 6.9) |
| LCH | lch(16.8 34.2 11.7) |
| OKLCH | oklch(0.296 0.103 9.8) |
Copy-ready code
/* CSS */
color: #540c21;
background-color: #540c21;
/* Tailwind (arbitrary) */
class="text-[#540c21] bg-[#540c21]"
/* SCSS */
$brand: #540c21;
/* SwiftUI */
Color(red: 0.329, green: 0.047, blue: 0.129)
/* Android */
Color.parseColor("#540c21")Accessibility — WCAG contrast
Aa
#540c21 on white: 14.47:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#540c21 on black: 1.45:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red32.9%
Green4.7%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta85.7%
Yellow60.7%
Key (black)67.1%
Color previews
#540c21 text on a black background
contrast 1.45:1
Card sample
#540c21 text on a white background
contrast 14.47:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #540c21;
Background color
Panel with #540c21 background
background-color: #540c21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #540c21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(84, 12, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(84, 12, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #540c21; background: linear-gradient(135deg, #540c21, #54270C);