Skip to content

#f2cffb

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

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

Every format

HEX#f2cffb
RGBrgb(242, 207, 251)
HSLhsl(288, 85%, 90%)
CMYKcmyk(4%, 18%, 0%, 2%)
LABlab(87.2 19.8 -17.0)
LCHlch(87.2 26.1 319.5)
OKLCHoklch(0.897 0.070 319.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2cffb on white: 1.39:1
AA ✗ fail · AA-large · AAA
Aa
#f2cffb on black: 15.09:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green81.2%
Blue98.4%

CMYK percentages

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

Color previews

#f2cffb text on a black background

contrast 15.09:1

Card sample

#f2cffb text on a white background

contrast 1.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2cffb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2cffb in the Color Lab