Skip to content

#f2cdef

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

RGB
242, 205, 239
HSL
305°, 59%, 88%
CMYK
0, 15, 1, 5
Luminance
0.6877

Every format

HEX#f2cdef
RGBrgb(242, 205, 239)
HSLhsl(305, 59%, 88%)
CMYKcmyk(0%, 15%, 1%, 5%)
LABlab(86.4 18.7 -11.9)
LCHlch(86.4 22.1 327.6)
OKLCHoklch(0.890 0.061 328.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2cdef on white: 1.42:1
AA ✗ fail · AA-large · AAA
Aa
#f2cdef on black: 14.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green80.4%
Blue93.7%

CMYK percentages

Cyan0.0%
Magenta15.3%
Yellow1.2%
Key (black)5.1%

Color previews

#f2cdef text on a black background

contrast 14.75:1

Card sample

#f2cdef text on a white background

contrast 1.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2cdef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2cdef in the Color Lab