#df8aff
a light, electric violet · warm · closest name: violet
RGB
223, 138, 255
HSL
284°, 100%, 77%
CMYK
13, 46, 0, 0
Luminance
0.4108
Every format
| HEX | #df8aff |
| RGB | rgb(223, 138, 255) |
| HSL | hsl(284, 100%, 77%) |
| CMYK | cmyk(13%, 46%, 0%, 0%) |
| LAB | lab(70.2 51.3 -45.4) |
| LCH | lch(70.2 68.5 318.5) |
| OKLCH | oklch(0.764 0.182 316.2) |
Copy-ready code
/* CSS */
color: #df8aff;
background-color: #df8aff;
/* Tailwind (arbitrary) */
class="text-[#df8aff] bg-[#df8aff]"
/* SCSS */
$brand: #df8aff;
/* SwiftUI */
Color(red: 0.875, green: 0.541, blue: 1.000)
/* Android */
Color.parseColor("#df8aff")Accessibility — WCAG contrast
Aa
#df8aff on white: 2.28:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#df8aff on black: 9.22:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red87.5%
Green54.1%
Blue100.0%
CMYK percentages
Cyan12.5%
Magenta45.9%
Yellow0.0%
Key (black)0.0%
Color previews
#df8aff text on a black background
contrast 9.22:1
Card sample
#df8aff text on a white background
contrast 2.28:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #df8aff;
Background color
Panel with #df8aff background
background-color: #df8aff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #df8aff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(223, 138, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 138, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #df8aff; background: linear-gradient(135deg, #df8aff, #FF8AD1);