#cd74ff
a light, electric violet · warm · closest name: violet
RGB
205, 116, 255
HSL
278°, 100%, 73%
CMYK
20, 55, 0, 0
Luminance
0.3269
Every format
| HEX | #cd74ff |
| RGB | rgb(205, 116, 255) |
| HSL | hsl(278, 100%, 73%) |
| CMYK | cmyk(20%, 55%, 0%, 0%) |
| LAB | lab(63.9 57.8 -55.5) |
| LCH | lch(63.9 80.1 316.1) |
| OKLCH | oklch(0.713 0.209 311.8) |
Copy-ready code
/* CSS */
color: #cd74ff;
background-color: #cd74ff;
/* Tailwind (arbitrary) */
class="text-[#cd74ff] bg-[#cd74ff]"
/* SCSS */
$brand: #cd74ff;
/* SwiftUI */
Color(red: 0.804, green: 0.455, blue: 1.000)
/* Android */
Color.parseColor("#cd74ff")Accessibility — WCAG contrast
Aa
#cd74ff on white: 2.79:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cd74ff on black: 7.54:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.4%
Green45.5%
Blue100.0%
CMYK percentages
Cyan19.6%
Magenta54.5%
Yellow0.0%
Key (black)0.0%
Color previews
#cd74ff text on a black background
contrast 7.54:1
Card sample
#cd74ff text on a white background
contrast 2.79:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cd74ff;
Background color
Panel with #cd74ff background
background-color: #cd74ff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cd74ff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(205, 116, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 116, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cd74ff; background: linear-gradient(135deg, #cd74ff, #FF74D4);