#e311af
a balanced, electric magenta / pink · warm · closest name: orchid
RGB
227, 17, 175
HSL
315°, 86%, 48%
CMYK
0, 93, 23, 11
Luminance
0.1983
Every format
| HEX | #e311af |
| RGB | rgb(227, 17, 175) |
| HSL | hsl(315, 86%, 48%) |
| CMYK | cmyk(0%, 93%, 23%, 11%) |
| LAB | lab(51.6 81.9 -29.3) |
| LCH | lch(51.6 87.0 340.3) |
| OKLCH | oklch(0.618 0.260 342.3) |
Copy-ready code
/* CSS */
color: #e311af;
background-color: #e311af;
/* Tailwind (arbitrary) */
class="text-[#e311af] bg-[#e311af]"
/* SCSS */
$brand: #e311af;
/* SwiftUI */
Color(red: 0.890, green: 0.067, blue: 0.686)
/* Android */
Color.parseColor("#e311af")Accessibility — WCAG contrast
Aa
#e311af on white: 4.23:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#e311af on black: 4.97:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red89.0%
Green6.7%
Blue68.6%
CMYK percentages
Cyan0.0%
Magenta92.5%
Yellow22.9%
Key (black)11.0%
Color previews
#e311af text on a black background
contrast 4.97:1
Card sample
#e311af text on a white background
contrast 4.23:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #e311af;
Background color
Panel with #e311af background
background-color: #e311af;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #e311af;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(227, 17, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(227, 17, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #e311af; background: linear-gradient(135deg, #e311af, #E31123);