#cd8cff
a light, electric violet · warm · closest name: violet
RGB
205, 140, 255
HSL
274°, 100%, 78%
CMYK
20, 45, 0, 0
Luminance
0.3896
Every format
| HEX | #cd8cff |
| RGB | rgb(205, 140, 255) |
| HSL | hsl(274, 100%, 78%) |
| CMYK | cmyk(20%, 45%, 0%, 0%) |
| LAB | lab(68.7 45.3 -47.9) |
| LCH | lch(68.7 66.0 313.4) |
| OKLCH | oklch(0.749 0.172 308.9) |
Copy-ready code
/* CSS */
color: #cd8cff;
background-color: #cd8cff;
/* Tailwind (arbitrary) */
class="text-[#cd8cff] bg-[#cd8cff]"
/* SCSS */
$brand: #cd8cff;
/* SwiftUI */
Color(red: 0.804, green: 0.549, blue: 1.000)
/* Android */
Color.parseColor("#cd8cff")Accessibility — WCAG contrast
Aa
#cd8cff on white: 2.39:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cd8cff on black: 8.79:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.4%
Green54.9%
Blue100.0%
CMYK percentages
Cyan19.6%
Magenta45.1%
Yellow0.0%
Key (black)0.0%
Color previews
#cd8cff text on a black background
contrast 8.79:1
Card sample
#cd8cff text on a white background
contrast 2.39:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cd8cff;
Background color
Panel with #cd8cff background
background-color: #cd8cff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cd8cff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(205, 140, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 140, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cd8cff; background: linear-gradient(135deg, #cd8cff, #FF8CE4);