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