#df7aff
a light, electric violet · warm · closest name: violet
RGB
223, 122, 255
HSL
286°, 100%, 74%
CMYK
13, 52, 0, 0
Luminance
0.3683
Every format
| HEX | #df7aff |
| RGB | rgb(223, 122, 255) |
| HSL | hsl(286, 100%, 74%) |
| CMYK | cmyk(13%, 52%, 0%, 0%) |
| LAB | lab(67.2 59.4 -50.3) |
| LCH | lch(67.2 77.8 319.8) |
| OKLCH | oklch(0.742 0.207 317.5) |
Copy-ready code
/* CSS */
color: #df7aff;
background-color: #df7aff;
/* Tailwind (arbitrary) */
class="text-[#df7aff] bg-[#df7aff]"
/* SCSS */
$brand: #df7aff;
/* SwiftUI */
Color(red: 0.875, green: 0.478, blue: 1.000)
/* Android */
Color.parseColor("#df7aff")Accessibility — WCAG contrast
Aa
#df7aff on white: 2.51:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#df7aff on black: 8.37:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red87.5%
Green47.8%
Blue100.0%
CMYK percentages
Cyan12.5%
Magenta52.2%
Yellow0.0%
Key (black)0.0%
Color previews
#df7aff text on a black background
contrast 8.37:1
Card sample
#df7aff text on a white background
contrast 2.51:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #df7aff;
Background color
Panel with #df7aff background
background-color: #df7aff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #df7aff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(223, 122, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 122, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #df7aff; background: linear-gradient(135deg, #df7aff, #FF7AC6);