Skip to content

#f0dcfc

a pale, electric violet · warm · closest name: lavender

RGB
240, 220, 252
HSL
278°, 84%, 93%
CMYK
5, 13, 0, 1
Luminance
0.7674

Every format

HEX#f0dcfc
RGBrgb(240, 220, 252)
HSLhsl(278, 84%, 93%)
CMYKcmyk(5%, 13%, 0%, 1%)
LABlab(90.2 12.5 -13.1)
LCHlch(90.2 18.1 313.8)
OKLCHoklch(0.920 0.048 313.0)

Copy-ready code

/* CSS */
color: #f0dcfc;
background-color: #f0dcfc;
/* Tailwind (arbitrary) */
class="text-[#f0dcfc] bg-[#f0dcfc]"
/* SCSS */
$brand: #f0dcfc;
/* SwiftUI */
Color(red: 0.941, green: 0.863, blue: 0.988)
/* Android */
Color.parseColor("#f0dcfc")

Accessibility — WCAG contrast

Aa
#f0dcfc on white: 1.28:1
AA ✗ fail · AA-large · AAA
Aa
#f0dcfc on black: 16.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green86.3%
Blue98.8%

CMYK percentages

Cyan4.8%
Magenta12.7%
Yellow0.0%
Key (black)1.2%

Color previews

#f0dcfc text on a black background

contrast 16.35:1

Card sample

#f0dcfc text on a white background

contrast 1.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #f0dcfc;
Background color
Panel with #f0dcfc background
background-color: #f0dcfc;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #f0dcfc;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(240, 220, 252, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 220, 252, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0dcfc;
background: linear-gradient(135deg, #f0dcfc, #FCDCF3);

Monochromatic scale

Palettes built from #f0dcfc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0dcfc in the Color Lab