#b261f0
a light, electric violet · warm · closest name: slateblue
RGB
178, 97, 240
HSL
274°, 83%, 66%
CMYK
26, 60, 0, 6
Luminance
0.2431
Every format
| HEX | #b261f0 |
| RGB | rgb(178, 97, 240) |
| HSL | hsl(274, 83%, 66%) |
| CMYK | cmyk(26%, 60%, 0%, 6%) |
| LAB | lab(56.4 57.5 -59.4) |
| LCH | lch(56.4 82.7 314.0) |
| OKLCH | oklch(0.649 0.212 307.6) |
Copy-ready code
/* CSS */
color: #b261f0;
background-color: #b261f0;
/* Tailwind (arbitrary) */
class="text-[#b261f0] bg-[#b261f0]"
/* SCSS */
$brand: #b261f0;
/* SwiftUI */
Color(red: 0.698, green: 0.380, blue: 0.941)
/* Android */
Color.parseColor("#b261f0")Accessibility — WCAG contrast
Aa
#b261f0 on white: 3.58:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#b261f0 on black: 5.86:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red69.8%
Green38.0%
Blue94.1%
CMYK percentages
Cyan25.8%
Magenta59.6%
Yellow0.0%
Key (black)5.9%
Color previews
#b261f0 text on a black background
contrast 5.86:1
Card sample
#b261f0 text on a white background
contrast 3.58:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #b261f0;
Background color
Panel with #b261f0 background
background-color: #b261f0;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #b261f0;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(178, 97, 240, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(178, 97, 240, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b261f0; background: linear-gradient(135deg, #b261f0, #F061CF);