#c27ef1
a light, electric violet · warm · closest name: violet
RGB
194, 126, 241
HSL
276°, 80%, 72%
CMYK
20, 48, 0, 6
Luminance
0.3274
Every format
| HEX | #c27ef1 |
| RGB | rgb(194, 126, 241) |
| HSL | hsl(276, 80%, 72%) |
| CMYK | cmyk(20%, 48%, 0%, 6%) |
| LAB | lab(64.0 46.8 -47.8) |
| LCH | lch(64.0 66.9 314.3) |
| OKLCH | oklch(0.709 0.174 309.9) |
Copy-ready code
/* CSS */
color: #c27ef1;
background-color: #c27ef1;
/* Tailwind (arbitrary) */
class="text-[#c27ef1] bg-[#c27ef1]"
/* SCSS */
$brand: #c27ef1;
/* SwiftUI */
Color(red: 0.761, green: 0.494, blue: 0.945)
/* Android */
Color.parseColor("#c27ef1")Accessibility — WCAG contrast
Aa
#c27ef1 on white: 2.78:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#c27ef1 on black: 7.55:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red76.1%
Green49.4%
Blue94.5%
CMYK percentages
Cyan19.5%
Magenta47.7%
Yellow0.0%
Key (black)5.5%
Color previews
#c27ef1 text on a black background
contrast 7.55:1
Card sample
#c27ef1 text on a white background
contrast 2.78:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c27ef1;
Background color
Panel with #c27ef1 background
background-color: #c27ef1;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c27ef1;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(194, 126, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(194, 126, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c27ef1; background: linear-gradient(135deg, #c27ef1, #F17ED3);