#b22afd
a balanced, electric violet · warm · closest name: magenta
RGB
178, 42, 253
HSL
279°, 98%, 58%
CMYK
30, 83, 0, 1
Luminance
0.1821
Every format
| HEX | #b22afd |
| RGB | rgb(178, 42, 253) |
| HSL | hsl(279, 98%, 58%) |
| CMYK | cmyk(30%, 83%, 0%, 1%) |
| LAB | lab(49.8 81.4 -77.4) |
| LCH | lch(49.8 112.3 316.4) |
| OKLCH | oklch(0.604 0.283 308.8) |
Copy-ready code
/* CSS */
color: #b22afd;
background-color: #b22afd;
/* Tailwind (arbitrary) */
class="text-[#b22afd] bg-[#b22afd]"
/* SCSS */
$brand: #b22afd;
/* SwiftUI */
Color(red: 0.698, green: 0.165, blue: 0.992)
/* Android */
Color.parseColor("#b22afd")Accessibility — WCAG contrast
Aa
#b22afd on white: 4.52:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#b22afd on black: 4.64:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red69.8%
Green16.5%
Blue99.2%
CMYK percentages
Cyan29.6%
Magenta83.4%
Yellow0.0%
Key (black)0.8%
Color previews
#b22afd text on a black background
contrast 4.64:1
Card sample
#b22afd text on a white background
contrast 4.52:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #b22afd;
Background color
Panel with #b22afd background
background-color: #b22afd;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #b22afd;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(178, 42, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(178, 42, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b22afd; background: linear-gradient(135deg, #b22afd, #FD2ABB);