#840c01
a dark, electric red · warm · “maroon”
RGB
132, 12, 1
HSL
5°, 99%, 26%
CMYK
0, 91, 99, 48
Luminance
0.0517
Every format
| HEX | #840c01 |
| RGB | rgb(132, 12, 1) |
| HSL | hsl(5, 99%, 26%) |
| CMYK | cmyk(0%, 91%, 99%, 48%) |
| LAB | lab(27.2 47.0 39.5) |
| LCH | lch(27.2 61.4 40.1) |
| OKLCH | oklch(0.391 0.153 30.6) |
Copy-ready code
/* CSS */
color: #840c01;
background-color: #840c01;
/* Tailwind (arbitrary) */
class="text-[#840c01] bg-[#840c01]"
/* SCSS */
$brand: #840c01;
/* SwiftUI */
Color(red: 0.518, green: 0.047, blue: 0.004)
/* Android */
Color.parseColor("#840c01")Accessibility — WCAG contrast
Aa
#840c01 on white: 10.32:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#840c01 on black: 2.03:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red51.8%
Green4.7%
Blue0.4%
CMYK percentages
Cyan0.0%
Magenta90.9%
Yellow99.2%
Key (black)48.2%
Color previews
#840c01 text on a black background
contrast 2.03:1
Card sample
#840c01 text on a white background
contrast 10.32:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #840c01;
Background color
Panel with #840c01 background
background-color: #840c01;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #840c01;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(132, 12, 1, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(132, 12, 1, 0.45);
Border & gradient
Gradient panel
border: 3px solid #840c01; background: linear-gradient(135deg, #840c01, #846301);