#d28cff
a light, electric violet · warm · closest name: violet
RGB
210, 140, 255
HSL
277°, 100%, 78%
CMYK
18, 45, 0, 0
Luminance
0.3968
Every format
| HEX | #d28cff |
| RGB | rgb(210, 140, 255) |
| HSL | hsl(277, 100%, 78%) |
| CMYK | cmyk(18%, 45%, 0%, 0%) |
| LAB | lab(69.2 46.7 -47.0) |
| LCH | lch(69.2 66.3 314.8) |
| OKLCH | oklch(0.754 0.173 310.9) |
Copy-ready code
/* CSS */
color: #d28cff;
background-color: #d28cff;
/* Tailwind (arbitrary) */
class="text-[#d28cff] bg-[#d28cff]"
/* SCSS */
$brand: #d28cff;
/* SwiftUI */
Color(red: 0.824, green: 0.549, blue: 1.000)
/* Android */
Color.parseColor("#d28cff")Accessibility — WCAG contrast
Aa
#d28cff on white: 2.35:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#d28cff on black: 8.94:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red82.4%
Green54.9%
Blue100.0%
CMYK percentages
Cyan17.6%
Magenta45.1%
Yellow0.0%
Key (black)0.0%
Color previews
#d28cff text on a black background
contrast 8.94:1
Card sample
#d28cff text on a white background
contrast 2.35:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #d28cff;
Background color
Panel with #d28cff background
background-color: #d28cff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #d28cff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(210, 140, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 140, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d28cff; background: linear-gradient(135deg, #d28cff, #FF8CDF);