#f0dfff
a pale, electric violet · warm · closest name: lavender
RGB
240, 223, 255
HSL
272°, 100%, 94%
CMYK
6, 13, 0, 0
Luminance
0.7852
Every format
| HEX | #f0dfff |
| RGB | rgb(240, 223, 255) |
| HSL | hsl(272, 100%, 94%) |
| CMYK | cmyk(6%, 13%, 0%, 0%) |
| LAB | lab(91.0 11.5 -13.4) |
| LCH | lch(91.0 17.7 310.7) |
| OKLCH | oklch(0.927 0.046 309.2) |
Copy-ready code
/* CSS */
color: #f0dfff;
background-color: #f0dfff;
/* Tailwind (arbitrary) */
class="text-[#f0dfff] bg-[#f0dfff]"
/* SCSS */
$brand: #f0dfff;
/* SwiftUI */
Color(red: 0.941, green: 0.875, blue: 1.000)
/* Android */
Color.parseColor("#f0dfff")Accessibility — WCAG contrast
Aa
#f0dfff on white: 1.26:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f0dfff on black: 16.70:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green87.5%
Blue100.0%
CMYK percentages
Cyan5.9%
Magenta12.5%
Yellow0.0%
Key (black)0.0%
Color previews
#f0dfff text on a black background
contrast 16.70:1
Card sample
#f0dfff text on a white background
contrast 1.26:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f0dfff;
Background color
Panel with #f0dfff background
background-color: #f0dfff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f0dfff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 223, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 223, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0dfff; background: linear-gradient(135deg, #f0dfff, #FFDFF9);