#f0ccfa
a pale, electric violet · warm · closest name: plum
RGB
240, 204, 250
HSL
287°, 82%, 89%
CMYK
4, 18, 0, 2
Luminance
0.6861
Every format
| HEX | #f0ccfa |
| RGB | rgb(240, 204, 250) |
| HSL | hsl(287, 82%, 89%) |
| CMYK | cmyk(4%, 18%, 0%, 2%) |
| LAB | lab(86.3 20.6 -17.8) |
| LCH | lch(86.3 27.2 319.1) |
| OKLCH | oklch(0.890 0.073 318.8) |
Copy-ready code
/* CSS */
color: #f0ccfa;
background-color: #f0ccfa;
/* Tailwind (arbitrary) */
class="text-[#f0ccfa] bg-[#f0ccfa]"
/* SCSS */
$brand: #f0ccfa;
/* SwiftUI */
Color(red: 0.941, green: 0.800, blue: 0.980)
/* Android */
Color.parseColor("#f0ccfa")Accessibility — WCAG contrast
Aa
#f0ccfa on white: 1.43:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f0ccfa on black: 14.72:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green80.0%
Blue98.0%
CMYK percentages
Cyan4.0%
Magenta18.4%
Yellow0.0%
Key (black)2.0%
Color previews
#f0ccfa text on a black background
contrast 14.72:1
Card sample
#f0ccfa text on a white background
contrast 1.43:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f0ccfa;
Background color
Panel with #f0ccfa background
background-color: #f0ccfa;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f0ccfa;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 204, 250, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 204, 250, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0ccfa; background: linear-gradient(135deg, #f0ccfa, #FACCE5);