#bc2afb
a balanced, electric violet · warm · closest name: magenta
RGB
188, 42, 251
HSL
282°, 96%, 58%
CMYK
25, 83, 0, 2
Luminance
0.1931
Every format
| HEX | #bc2afb |
| RGB | rgb(188, 42, 251) |
| HSL | hsl(282, 96%, 58%) |
| CMYK | cmyk(25%, 83%, 0%, 2%) |
| LAB | lab(51.0 82.5 -74.1) |
| LCH | lch(51.0 110.8 318.1) |
| OKLCH | oklch(0.616 0.283 312.2) |
Copy-ready code
/* CSS */
color: #bc2afb;
background-color: #bc2afb;
/* Tailwind (arbitrary) */
class="text-[#bc2afb] bg-[#bc2afb]"
/* SCSS */
$brand: #bc2afb;
/* SwiftUI */
Color(red: 0.737, green: 0.165, blue: 0.984)
/* Android */
Color.parseColor("#bc2afb")Accessibility — WCAG contrast
Aa
#bc2afb on white: 4.32:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#bc2afb on black: 4.86:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red73.7%
Green16.5%
Blue98.4%
CMYK percentages
Cyan25.1%
Magenta83.3%
Yellow0.0%
Key (black)1.6%
Color previews
#bc2afb text on a black background
contrast 4.86:1
Card sample
#bc2afb text on a white background
contrast 4.32:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #bc2afb;
Background color
Panel with #bc2afb background
background-color: #bc2afb;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #bc2afb;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(188, 42, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(188, 42, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bc2afb; background: linear-gradient(135deg, #bc2afb, #FB2AAF);