Skip to content

#f0dcfd

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

RGB
240, 220, 253
HSL
276°, 89%, 93%
CMYK
5, 13, 0, 1
Luminance
0.7680

Every format

HEX#f0dcfd
RGBrgb(240, 220, 253)
HSLhsl(276, 89%, 93%)
CMYKcmyk(5%, 13%, 0%, 1%)
LABlab(90.2 12.7 -13.5)
LCHlch(90.2 18.6 313.2)
OKLCHoklch(0.921 0.049 312.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green86.3%
Blue99.2%

CMYK percentages

Cyan5.1%
Magenta13.0%
Yellow0.0%
Key (black)0.8%

Color previews

#f0dcfd text on a black background

contrast 16.36:1

Card sample

#f0dcfd text on a white background

contrast 1.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0dcfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0dcfd in the Color Lab