#b45af2
a light, electric violet · warm · closest name: slateblue
RGB
180, 90, 242
HSL
276°, 85%, 65%
CMYK
26, 63, 0, 5
Luminance
0.2343
Every format
| HEX | #b45af2 |
| RGB | rgb(180, 90, 242) |
| HSL | hsl(276, 85%, 65%) |
| CMYK | cmyk(26%, 63%, 0%, 5%) |
| LAB | lab(55.5 61.7 -61.9) |
| LCH | lch(55.5 87.4 314.9) |
| OKLCH | oklch(0.643 0.224 308.6) |
Copy-ready code
/* CSS */
color: #b45af2;
background-color: #b45af2;
/* Tailwind (arbitrary) */
class="text-[#b45af2] bg-[#b45af2]"
/* SCSS */
$brand: #b45af2;
/* SwiftUI */
Color(red: 0.706, green: 0.353, blue: 0.949)
/* Android */
Color.parseColor("#b45af2")Accessibility — WCAG contrast
Aa
#b45af2 on white: 3.69:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#b45af2 on black: 5.69:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red70.6%
Green35.3%
Blue94.9%
CMYK percentages
Cyan25.6%
Magenta62.8%
Yellow0.0%
Key (black)5.1%
Color previews
#b45af2 text on a black background
contrast 5.69:1
Card sample
#b45af2 text on a white background
contrast 3.69:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #b45af2;
Background color
Panel with #b45af2 background
background-color: #b45af2;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #b45af2;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(180, 90, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(180, 90, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b45af2; background: linear-gradient(135deg, #b45af2, #F25ACB);