#540c01
a deep, electric red · warm · closest name: maroon
RGB
84, 12, 1
HSL
8°, 98%, 17%
CMYK
0, 86, 99, 67
Luminance
0.0215
Every format
| HEX | #540c01 |
| RGB | rgb(84, 12, 1) |
| HSL | hsl(8, 98%, 17%) |
| CMYK | cmyk(0%, 86%, 99%, 67%) |
| LAB | lab(16.3 31.8 24.5) |
| LCH | lch(16.3 40.2 37.6) |
| OKLCH | oklch(0.290 0.105 32.9) |
Copy-ready code
/* CSS */
color: #540c01;
background-color: #540c01;
/* Tailwind (arbitrary) */
class="text-[#540c01] bg-[#540c01]"
/* SCSS */
$brand: #540c01;
/* SwiftUI */
Color(red: 0.329, green: 0.047, blue: 0.004)
/* Android */
Color.parseColor("#540c01")Accessibility — WCAG contrast
Aa
#540c01 on white: 14.69:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#540c01 on black: 1.43:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red32.9%
Green4.7%
Blue0.4%
CMYK percentages
Cyan0.0%
Magenta85.7%
Yellow98.8%
Key (black)67.1%
Color previews
#540c01 text on a black background
contrast 1.43:1
Card sample
#540c01 text on a white background
contrast 14.69:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #540c01;
Background color
Panel with #540c01 background
background-color: #540c01;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #540c01;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(84, 12, 1, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(84, 12, 1, 0.45);
Border & gradient
Gradient panel
border: 3px solid #540c01; background: linear-gradient(135deg, #540c01, #544401);