#b261fa
a light, electric violet · warm · closest name: slateblue
RGB
178, 97, 250
HSL
272°, 94%, 68%
CMYK
29, 61, 0, 2
Luminance
0.2492
Every format
| HEX | #b261fa |
| RGB | rgb(178, 97, 250) |
| HSL | hsl(272, 94%, 68%) |
| CMYK | cmyk(29%, 61%, 0%, 2%) |
| LAB | lab(57.0 59.7 -64.0) |
| LCH | lch(57.0 87.5 313.0) |
| OKLCH | oklch(0.655 0.222 305.5) |
Copy-ready code
/* CSS */
color: #b261fa;
background-color: #b261fa;
/* Tailwind (arbitrary) */
class="text-[#b261fa] bg-[#b261fa]"
/* SCSS */
$brand: #b261fa;
/* SwiftUI */
Color(red: 0.698, green: 0.380, blue: 0.980)
/* Android */
Color.parseColor("#b261fa")Accessibility — WCAG contrast
Aa
#b261fa on white: 3.51:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#b261fa on black: 5.98:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red69.8%
Green38.0%
Blue98.0%
CMYK percentages
Cyan28.8%
Magenta61.2%
Yellow0.0%
Key (black)2.0%
Color previews
#b261fa text on a black background
contrast 5.98:1
Card sample
#b261fa text on a white background
contrast 3.51:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #b261fa;
Background color
Panel with #b261fa background
background-color: #b261fa;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #b261fa;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(178, 97, 250, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(178, 97, 250, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b261fa; background: linear-gradient(135deg, #b261fa, #FA61DC);