Skip to content

#f2cefc

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

RGB
242, 206, 252
HSL
287°, 89%, 90%
CMYK
4, 18, 0, 1
Luminance
0.7005

Every format

HEX#f2cefc
RGBrgb(242, 206, 252)
HSLhsl(287, 89%, 90%)
CMYKcmyk(4%, 18%, 0%, 1%)
LABlab(87.0 20.6 -17.8)
LCHlch(87.0 27.2 319.1)
OKLCHoklch(0.896 0.073 318.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

Cyan4.0%
Magenta18.3%
Yellow0.0%
Key (black)1.2%

Color previews

#f2cefc text on a black background

contrast 15.01:1

Card sample

#f2cefc text on a white background

contrast 1.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2cefc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2cefc in the Color Lab