#c2abfa
a light, electric violet · warm · closest name: plum
RGB
194, 171, 250
HSL
258°, 89%, 83%
CMYK
22, 32, 0, 2
Luminance
0.4750
Every format
| HEX | #c2abfa |
| RGB | rgb(194, 171, 250) |
| HSL | hsl(258, 89%, 83%) |
| CMYK | cmyk(22%, 32%, 0%, 2%) |
| LAB | lab(74.5 24.2 -36.2) |
| LCH | lch(74.5 43.5 303.7) |
| OKLCH | oklch(0.790 0.113 297.1) |
Copy-ready code
/* CSS */
color: #c2abfa;
background-color: #c2abfa;
/* Tailwind (arbitrary) */
class="text-[#c2abfa] bg-[#c2abfa]"
/* SCSS */
$brand: #c2abfa;
/* SwiftUI */
Color(red: 0.761, green: 0.671, blue: 0.980)
/* Android */
Color.parseColor("#c2abfa")Accessibility — WCAG contrast
Aa
#c2abfa on white: 2.00:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#c2abfa on black: 10.50:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red76.1%
Green67.1%
Blue98.0%
CMYK percentages
Cyan22.4%
Magenta31.6%
Yellow0.0%
Key (black)2.0%
Color previews
#c2abfa text on a black background
contrast 10.50:1
Card sample
#c2abfa text on a white background
contrast 2.00:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c2abfa;
Background color
Panel with #c2abfa background
background-color: #c2abfa;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c2abfa;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(194, 171, 250, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(194, 171, 250, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c2abfa; background: linear-gradient(135deg, #c2abfa, #F7ABFA);