#c28cfd
a light, electric violet · warm · closest name: violet
RGB
194, 140, 253
HSL
269°, 97%, 77%
CMYK
23, 45, 0, 1
Luminance
0.3732
Every format
| HEX | #c28cfd |
| RGB | rgb(194, 140, 253) |
| HSL | hsl(269, 97%, 77%) |
| CMYK | cmyk(23%, 45%, 0%, 1%) |
| LAB | lab(67.5 41.9 -48.8) |
| LCH | lch(67.5 64.3 310.7) |
| OKLCH | oklch(0.737 0.166 304.7) |
Copy-ready code
/* CSS */
color: #c28cfd;
background-color: #c28cfd;
/* Tailwind (arbitrary) */
class="text-[#c28cfd] bg-[#c28cfd]"
/* SCSS */
$brand: #c28cfd;
/* SwiftUI */
Color(red: 0.761, green: 0.549, blue: 0.992)
/* Android */
Color.parseColor("#c28cfd")Accessibility — WCAG contrast
Aa
#c28cfd on white: 2.48:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#c28cfd on black: 8.46:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red76.1%
Green54.9%
Blue99.2%
CMYK percentages
Cyan23.3%
Magenta44.7%
Yellow0.0%
Key (black)0.8%
Color previews
#c28cfd text on a black background
contrast 8.46:1
Card sample
#c28cfd text on a white background
contrast 2.48:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c28cfd;
Background color
Panel with #c28cfd background
background-color: #c28cfd;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c28cfd;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(194, 140, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(194, 140, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c28cfd; background: linear-gradient(135deg, #c28cfd, #FD8CED);