#f2ebff
a pale, electric violet · warm · closest name: lavender
RGB
242, 235, 255
HSL
261°, 100%, 96%
CMYK
5, 8, 0, 0
Luminance
0.8551
Every format
| HEX | #f2ebff |
| RGB | rgb(242, 235, 255) |
| HSL | hsl(261, 100%, 96%) |
| CMYK | cmyk(5%, 8%, 0%, 0%) |
| LAB | lab(94.1 6.0 -8.8) |
| LCH | lch(94.1 10.6 304.1) |
| OKLCH | oklch(0.951 0.028 301.8) |
Copy-ready code
/* CSS */
color: #f2ebff;
background-color: #f2ebff;
/* Tailwind (arbitrary) */
class="text-[#f2ebff] bg-[#f2ebff]"
/* SCSS */
$brand: #f2ebff;
/* SwiftUI */
Color(red: 0.949, green: 0.922, blue: 1.000)
/* Android */
Color.parseColor("#f2ebff")Accessibility — WCAG contrast
Aa
#f2ebff on white: 1.16:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f2ebff on black: 18.10:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.9%
Green92.2%
Blue100.0%
CMYK percentages
Cyan5.1%
Magenta7.8%
Yellow0.0%
Key (black)0.0%
Color previews
#f2ebff text on a black background
contrast 18.10:1
Card sample
#f2ebff text on a white background
contrast 1.16:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f2ebff;
Background color
Panel with #f2ebff background
background-color: #f2ebff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f2ebff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(242, 235, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 235, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2ebff; background: linear-gradient(135deg, #f2ebff, #FFEBFF);