Skip to content

#f0dcef

a pale, soft magenta / pink · warm · closest name: lavender

RGB
240, 220, 239
HSL
303°, 40%, 90%
CMYK
0, 8, 0, 6
Luminance
0.7594

Every format

HEX#f0dcef
RGBrgb(240, 220, 239)
HSLhsl(303, 40%, 90%)
CMYKcmyk(0%, 8%, 0%, 6%)
LABlab(89.8 10.1 -6.8)
LCHlch(89.8 12.2 326.3)
OKLCHoklch(0.916 0.033 327.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0dcef on white: 1.30:1
AA ✗ fail · AA-large · AAA
Aa
#f0dcef on black: 16.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green86.3%
Blue93.7%

CMYK percentages

Cyan0.0%
Magenta8.3%
Yellow0.4%
Key (black)5.9%

Color previews

#f0dcef text on a black background

contrast 16.19:1

Card sample

#f0dcef text on a white background

contrast 1.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0dcef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0dcef in the Color Lab