#ad47f0
a balanced, electric violet · warm · closest name: magenta
RGB
173, 71, 240
HSL
276°, 85%, 61%
CMYK
28, 70, 0, 6
Luminance
0.1968
Every format
| HEX | #ad47f0 |
| RGB | rgb(173, 71, 240) |
| HSL | hsl(276, 85%, 61%) |
| CMYK | cmyk(28%, 70%, 0%, 6%) |
| LAB | lab(51.5 68.3 -67.4) |
| LCH | lch(51.5 95.9 315.4) |
| OKLCH | oklch(0.612 0.244 308.4) |
Copy-ready code
/* CSS */
color: #ad47f0;
background-color: #ad47f0;
/* Tailwind (arbitrary) */
class="text-[#ad47f0] bg-[#ad47f0]"
/* SCSS */
$brand: #ad47f0;
/* SwiftUI */
Color(red: 0.678, green: 0.278, blue: 0.941)
/* Android */
Color.parseColor("#ad47f0")Accessibility — WCAG contrast
Aa
#ad47f0 on white: 4.25:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ad47f0 on black: 4.94:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.8%
Green27.8%
Blue94.1%
CMYK percentages
Cyan27.9%
Magenta70.4%
Yellow0.0%
Key (black)5.9%
Color previews
#ad47f0 text on a black background
contrast 4.94:1
Card sample
#ad47f0 text on a white background
contrast 4.25:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ad47f0;
Background color
Panel with #ad47f0 background
background-color: #ad47f0;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ad47f0;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(173, 71, 240, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(173, 71, 240, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ad47f0; background: linear-gradient(135deg, #ad47f0, #F047C2);