Skip to content

#f0dcf2

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

RGB
240, 220, 242
HSL
295°, 46%, 91%
CMYK
1, 9, 0, 5
Luminance
0.7612

Every format

HEX#f0dcf2
RGBrgb(240, 220, 242)
HSLhsl(295, 46%, 91%)
CMYKcmyk(1%, 9%, 0%, 5%)
LABlab(89.9 10.7 -8.2)
LCHlch(89.9 13.5 322.4)
OKLCHoklch(0.917 0.036 323.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0dcf2 on white: 1.29:1
AA ✗ fail · AA-large · AAA
Aa
#f0dcf2 on black: 16.22:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green86.3%
Blue94.9%

CMYK percentages

Cyan0.8%
Magenta9.1%
Yellow0.0%
Key (black)5.1%

Color previews

#f0dcf2 text on a black background

contrast 16.22:1

Card sample

#f0dcf2 text on a white background

contrast 1.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0dcf2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0dcf2 in the Color Lab