#af9ce2
a light, vivid violet · warm · closest name: plum
RGB
175, 156, 226
HSL
256°, 55%, 75%
CMYK
23, 31, 0, 11
Luminance
0.3838
Every format
| HEX | #af9ce2 |
| RGB | rgb(175, 156, 226) |
| HSL | hsl(256, 55%, 75%) |
| CMYK | cmyk(23%, 31%, 0%, 11%) |
| LAB | lab(68.3 21.3 -32.9) |
| LCH | lch(68.3 39.2 303.0) |
| OKLCH | oklch(0.735 0.101 296.3) |
Copy-ready code
/* CSS */
color: #af9ce2;
background-color: #af9ce2;
/* Tailwind (arbitrary) */
class="text-[#af9ce2] bg-[#af9ce2]"
/* SCSS */
$brand: #af9ce2;
/* SwiftUI */
Color(red: 0.686, green: 0.612, blue: 0.886)
/* Android */
Color.parseColor("#af9ce2")Accessibility — WCAG contrast
Aa
#af9ce2 on white: 2.42:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#af9ce2 on black: 8.68:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green61.2%
Blue88.6%
CMYK percentages
Cyan22.6%
Magenta31.0%
Yellow0.0%
Key (black)11.4%
Color previews
#af9ce2 text on a black background
contrast 8.68:1
Card sample
#af9ce2 text on a white background
contrast 2.42:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af9ce2;
Background color
Panel with #af9ce2 background
background-color: #af9ce2;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af9ce2;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 156, 226, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 156, 226, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af9ce2; background: linear-gradient(135deg, #af9ce2, #DE9CE2);