#af26df
a balanced, vivid violet · warm · closest name: magenta
RGB
175, 38, 223
HSL
284°, 74%, 51%
CMYK
22, 83, 0, 13
Luminance
0.1583
Every format
| HEX | #af26df |
| RGB | rgb(175, 38, 223) |
| HSL | hsl(284, 74%, 51%) |
| CMYK | cmyk(22%, 83%, 0%, 13%) |
| LAB | lab(46.8 76.2 -65.4) |
| LCH | lch(46.8 100.4 319.4) |
| OKLCH | oklch(0.576 0.260 314.7) |
Copy-ready code
/* CSS */
color: #af26df;
background-color: #af26df;
/* Tailwind (arbitrary) */
class="text-[#af26df] bg-[#af26df]"
/* SCSS */
$brand: #af26df;
/* SwiftUI */
Color(red: 0.686, green: 0.149, blue: 0.875)
/* Android */
Color.parseColor("#af26df")Accessibility — WCAG contrast
Aa
#af26df on white: 5.04:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#af26df on black: 4.17:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green14.9%
Blue87.5%
CMYK percentages
Cyan21.5%
Magenta83.0%
Yellow0.0%
Key (black)12.5%
Color previews
#af26df text on a black background
contrast 4.17:1
Card sample
#af26df text on a white background
contrast 5.04:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af26df;
Background color
Panel with #af26df background
background-color: #af26df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af26df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 38, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 38, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af26df; background: linear-gradient(135deg, #af26df, #DF2694);