Skip to content

#f0ddfe

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

RGB
240, 221, 254
HSL
275°, 94%, 93%
CMYK
6, 13, 0, 0
Luminance
0.7739

Every format

HEX#f0ddfe
RGBrgb(240, 221, 254)
HSLhsl(275, 94%, 93%)
CMYKcmyk(6%, 13%, 0%, 0%)
LABlab(90.5 12.4 -13.7)
LCHlch(90.5 18.4 312.2)
OKLCHoklch(0.923 0.049 311.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0ddfe on white: 1.27:1
AA ✗ fail · AA-large · AAA
Aa
#f0ddfe on black: 16.48:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green86.7%
Blue99.6%

CMYK percentages

Cyan5.5%
Magenta13.0%
Yellow0.0%
Key (black)0.4%

Color previews

#f0ddfe text on a black background

contrast 16.48:1

Card sample

#f0ddfe text on a white background

contrast 1.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0ddfe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0ddfe in the Color Lab