#ec7cf0
a light, electric magenta / pink · warm · closest name: violet
RGB
236, 124, 240
HSL
298°, 80%, 71%
CMYK
2, 48, 0, 6
Luminance
0.3854
Every format
| HEX | #ec7cf0 |
| RGB | rgb(236, 124, 240) |
| HSL | hsl(298, 80%, 71%) |
| CMYK | cmyk(2%, 48%, 0%, 6%) |
| LAB | lab(68.4 59.1 -39.9) |
| LCH | lch(68.4 71.3 325.9) |
| OKLCH | oklch(0.752 0.196 326.0) |
Copy-ready code
/* CSS */
color: #ec7cf0;
background-color: #ec7cf0;
/* Tailwind (arbitrary) */
class="text-[#ec7cf0] bg-[#ec7cf0]"
/* SCSS */
$brand: #ec7cf0;
/* SwiftUI */
Color(red: 0.925, green: 0.486, blue: 0.941)
/* Android */
Color.parseColor("#ec7cf0")Accessibility — WCAG contrast
Aa
#ec7cf0 on white: 2.41:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ec7cf0 on black: 8.71:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red92.5%
Green48.6%
Blue94.1%
CMYK percentages
Cyan1.7%
Magenta48.3%
Yellow0.0%
Key (black)5.9%
Color previews
#ec7cf0 text on a black background
contrast 8.71:1
Card sample
#ec7cf0 text on a white background
contrast 2.41:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ec7cf0;
Background color
Panel with #ec7cf0 background
background-color: #ec7cf0;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ec7cf0;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(236, 124, 240, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 124, 240, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ec7cf0; background: linear-gradient(135deg, #ec7cf0, #F07CA7);