Skip to content

#f2dfef

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

RGB
242, 223, 239
HSL
310°, 42%, 91%
CMYK
0, 8, 1, 5
Luminance
0.7788

Every format

HEX#f2dfef
RGBrgb(242, 223, 239)
HSLhsl(310, 42%, 91%)
CMYKcmyk(0%, 8%, 1%, 5%)
LABlab(90.7 9.3 -5.4)
LCHlch(90.7 10.7 329.6)
OKLCHoklch(0.924 0.030 330.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green87.5%
Blue93.7%

CMYK percentages

Cyan0.0%
Magenta7.9%
Yellow1.2%
Key (black)5.1%

Color previews

#f2dfef text on a black background

contrast 16.58:1

Card sample

#f2dfef text on a white background

contrast 1.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2dfef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2dfef in the Color Lab