Skip to content

#f2cefb

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

RGB
242, 206, 251
HSL
288°, 85%, 90%
CMYK
4, 18, 0, 2
Luminance
0.6998

Every format

HEX#f2cefb
RGBrgb(242, 206, 251)
HSLhsl(288, 85%, 90%)
CMYKcmyk(4%, 18%, 0%, 2%)
LABlab(87.0 20.4 -17.3)
LCHlch(87.0 26.7 319.6)
OKLCHoklch(0.896 0.072 319.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2cefb on white: 1.40:1
AA ✗ fail · AA-large · AAA
Aa
#f2cefb on black: 15.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green80.8%
Blue98.4%

CMYK percentages

Cyan3.6%
Magenta17.9%
Yellow0.0%
Key (black)1.6%

Color previews

#f2cefb text on a black background

contrast 15.00:1

Card sample

#f2cefb text on a white background

contrast 1.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2cefb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2cefb in the Color Lab