#af50df
a balanced, vivid violet · warm · closest name: orchid
RGB
175, 80, 223
HSL
280°, 69%, 59%
CMYK
22, 64, 0, 13
Luminance
0.2018
Every format
| HEX | #af50df |
| RGB | rgb(175, 80, 223) |
| HSL | hsl(280, 69%, 59%) |
| CMYK | cmyk(22%, 64%, 0%, 13%) |
| LAB | lab(52.0 61.2 -56.9) |
| LCH | lch(52.0 83.5 317.1) |
| OKLCH | oklch(0.613 0.217 312.3) |
Copy-ready code
/* CSS */
color: #af50df;
background-color: #af50df;
/* Tailwind (arbitrary) */
class="text-[#af50df] bg-[#af50df]"
/* SCSS */
$brand: #af50df;
/* SwiftUI */
Color(red: 0.686, green: 0.314, blue: 0.875)
/* Android */
Color.parseColor("#af50df")Accessibility — WCAG contrast
Aa
#af50df on white: 4.17:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#af50df on black: 5.04:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green31.4%
Blue87.5%
CMYK percentages
Cyan21.5%
Magenta64.1%
Yellow0.0%
Key (black)12.5%
Color previews
#af50df text on a black background
contrast 5.04:1
Card sample
#af50df text on a white background
contrast 4.17:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af50df;
Background color
Panel with #af50df background
background-color: #af50df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af50df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 80, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 80, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af50df; background: linear-gradient(135deg, #af50df, #DF50B0);