#af2cca
a balanced, vivid violet · warm · closest name: purple
RGB
175, 44, 202
HSL
290°, 64%, 48%
CMYK
13, 78, 0, 21
Luminance
0.1518
Every format
| HEX | #af2cca |
| RGB | rgb(175, 44, 202) |
| HSL | hsl(290, 64%, 48%) |
| CMYK | cmyk(13%, 78%, 0%, 21%) |
| LAB | lab(45.9 70.8 -54.7) |
| LCH | lch(45.9 89.5 322.3) |
| OKLCH | oklch(0.565 0.239 319.9) |
Copy-ready code
/* CSS */
color: #af2cca;
background-color: #af2cca;
/* Tailwind (arbitrary) */
class="text-[#af2cca] bg-[#af2cca]"
/* SCSS */
$brand: #af2cca;
/* SwiftUI */
Color(red: 0.686, green: 0.173, blue: 0.792)
/* Android */
Color.parseColor("#af2cca")Accessibility — WCAG contrast
Aa
#af2cca on white: 5.20:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#af2cca on black: 4.04:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green17.3%
Blue79.2%
CMYK percentages
Cyan13.4%
Magenta78.2%
Yellow0.0%
Key (black)20.8%
Color previews
#af2cca text on a black background
contrast 4.04:1
Card sample
#af2cca text on a white background
contrast 5.20:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af2cca;
Background color
Panel with #af2cca background
background-color: #af2cca;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af2cca;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 44, 202, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 44, 202, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af2cca; background: linear-gradient(135deg, #af2cca, #CA2C7C);