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