#b28ef1
a light, electric violet · warm · closest name: plum
RGB
178, 142, 241
HSL
262°, 78%, 75%
CMYK
26, 41, 0, 6
Luminance
0.3516
Every format
| HEX | #b28ef1 |
| RGB | rgb(178, 142, 241) |
| HSL | hsl(262, 78%, 75%) |
| CMYK | cmyk(26%, 41%, 0%, 6%) |
| LAB | lab(65.9 33.6 -44.9) |
| LCH | lch(65.9 56.1 306.8) |
| OKLCH | oklch(0.719 0.144 299.5) |
Copy-ready code
/* CSS */
color: #b28ef1;
background-color: #b28ef1;
/* Tailwind (arbitrary) */
class="text-[#b28ef1] bg-[#b28ef1]"
/* SCSS */
$brand: #b28ef1;
/* SwiftUI */
Color(red: 0.698, green: 0.557, blue: 0.945)
/* Android */
Color.parseColor("#b28ef1")Accessibility — WCAG contrast
Aa
#b28ef1 on white: 2.61:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#b28ef1 on black: 8.03:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red69.8%
Green55.7%
Blue94.5%
CMYK percentages
Cyan26.1%
Magenta41.1%
Yellow0.0%
Key (black)5.5%
Color previews
#b28ef1 text on a black background
contrast 8.03:1
Card sample
#b28ef1 text on a white background
contrast 2.61:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #b28ef1;
Background color
Panel with #b28ef1 background
background-color: #b28ef1;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #b28ef1;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(178, 142, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(178, 142, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b28ef1; background: linear-gradient(135deg, #b28ef1, #F18EEE);