#ec7cf1
a light, electric magenta / pink · warm · closest name: violet
RGB
236, 124, 241
HSL
297°, 81%, 72%
CMYK
2, 49, 0, 6
Luminance
0.3860
Every format
| HEX | #ec7cf1 |
| RGB | rgb(236, 124, 241) |
| HSL | hsl(297, 81%, 72%) |
| CMYK | cmyk(2%, 49%, 0%, 6%) |
| LAB | lab(68.5 59.3 -40.4) |
| LCH | lch(68.5 71.7 325.7) |
| OKLCH | oklch(0.753 0.197 325.7) |
Copy-ready code
/* CSS */
color: #ec7cf1;
background-color: #ec7cf1;
/* Tailwind (arbitrary) */
class="text-[#ec7cf1] bg-[#ec7cf1]"
/* SCSS */
$brand: #ec7cf1;
/* SwiftUI */
Color(red: 0.925, green: 0.486, blue: 0.945)
/* Android */
Color.parseColor("#ec7cf1")Accessibility — WCAG contrast
Aa
#ec7cf1 on white: 2.41:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ec7cf1 on black: 8.72:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red92.5%
Green48.6%
Blue94.5%
CMYK percentages
Cyan2.1%
Magenta48.5%
Yellow0.0%
Key (black)5.5%
Color previews
#ec7cf1 text on a black background
contrast 8.72:1
Card sample
#ec7cf1 text on a white background
contrast 2.41:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ec7cf1;
Background color
Panel with #ec7cf1 background
background-color: #ec7cf1;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ec7cf1;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(236, 124, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 124, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ec7cf1; background: linear-gradient(135deg, #ec7cf1, #F17CA8);