#f0d2ff
a pale, electric violet · warm · closest name: lavender
RGB
240, 210, 255
HSL
280°, 100%, 91%
CMYK
6, 18, 0, 0
Luminance
0.7184
Every format
| HEX | #f0d2ff |
| RGB | rgb(240, 210, 255) |
| HSL | hsl(280, 100%, 91%) |
| CMYK | cmyk(6%, 18%, 0%, 0%) |
| LAB | lab(87.9 18.4 -18.1) |
| LCH | lch(87.9 25.8 315.4) |
| OKLCH | oklch(0.903 0.068 314.5) |
Copy-ready code
/* CSS */
color: #f0d2ff;
background-color: #f0d2ff;
/* Tailwind (arbitrary) */
class="text-[#f0d2ff] bg-[#f0d2ff]"
/* SCSS */
$brand: #f0d2ff;
/* SwiftUI */
Color(red: 0.941, green: 0.824, blue: 1.000)
/* Android */
Color.parseColor("#f0d2ff")Accessibility — WCAG contrast
Aa
#f0d2ff on white: 1.37:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f0d2ff on black: 15.37:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green82.4%
Blue100.0%
CMYK percentages
Cyan5.9%
Magenta17.6%
Yellow0.0%
Key (black)0.0%
Color previews
#f0d2ff text on a black background
contrast 15.37:1
Card sample
#f0d2ff text on a white background
contrast 1.37:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f0d2ff;
Background color
Panel with #f0d2ff background
background-color: #f0d2ff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f0d2ff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 210, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 210, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0d2ff; background: linear-gradient(135deg, #f0d2ff, #FFD2F0);