#b16af2
a light, electric violet · warm · closest name: slateblue
RGB
177, 106, 242
HSL
271°, 84%, 68%
CMYK
27, 56, 0, 5
Luminance
0.2607
Every format
| HEX | #b16af2 |
| RGB | rgb(177, 106, 242) |
| HSL | hsl(271, 84%, 68%) |
| CMYK | cmyk(27%, 56%, 0%, 5%) |
| LAB | lab(58.1 53.1 -57.8) |
| LCH | lch(58.1 78.5 312.6) |
| OKLCH | oklch(0.661 0.201 305.7) |
Copy-ready code
/* CSS */
color: #b16af2;
background-color: #b16af2;
/* Tailwind (arbitrary) */
class="text-[#b16af2] bg-[#b16af2]"
/* SCSS */
$brand: #b16af2;
/* SwiftUI */
Color(red: 0.694, green: 0.416, blue: 0.949)
/* Android */
Color.parseColor("#b16af2")Accessibility — WCAG contrast
Aa
#b16af2 on white: 3.38:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#b16af2 on black: 6.21:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red69.4%
Green41.6%
Blue94.9%
CMYK percentages
Cyan26.9%
Magenta56.2%
Yellow0.0%
Key (black)5.1%
Color previews
#b16af2 text on a black background
contrast 6.21:1
Card sample
#b16af2 text on a white background
contrast 3.38:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #b16af2;
Background color
Panel with #b16af2 background
background-color: #b16af2;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #b16af2;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(177, 106, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(177, 106, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b16af2; background: linear-gradient(135deg, #b16af2, #F26AD8);