#b27ef1
a light, electric violet · warm · closest name: slateblue
RGB
178, 126, 241
HSL
267°, 80%, 72%
CMYK
26, 48, 0, 6
Luminance
0.3074
Every format
| HEX | #b27ef1 |
| RGB | rgb(178, 126, 241) |
| HSL | hsl(267, 80%, 72%) |
| CMYK | cmyk(26%, 48%, 0%, 6%) |
| LAB | lab(62.3 42.5 -50.6) |
| LCH | lch(62.3 66.0 310.0) |
| OKLCH | oklch(0.692 0.169 303.1) |
Copy-ready code
/* CSS */
color: #b27ef1;
background-color: #b27ef1;
/* Tailwind (arbitrary) */
class="text-[#b27ef1] bg-[#b27ef1]"
/* SCSS */
$brand: #b27ef1;
/* SwiftUI */
Color(red: 0.698, green: 0.494, blue: 0.945)
/* Android */
Color.parseColor("#b27ef1")Accessibility — WCAG contrast
Aa
#b27ef1 on white: 2.94:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#b27ef1 on black: 7.15:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red69.8%
Green49.4%
Blue94.5%
CMYK percentages
Cyan26.1%
Magenta47.7%
Yellow0.0%
Key (black)5.5%
Color previews
#b27ef1 text on a black background
contrast 7.15:1
Card sample
#b27ef1 text on a white background
contrast 2.94:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #b27ef1;
Background color
Panel with #b27ef1 background
background-color: #b27ef1;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #b27ef1;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(178, 126, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(178, 126, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b27ef1; background: linear-gradient(135deg, #b27ef1, #F17EE3);