Skip to content

#f2cefa

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

RGB
242, 206, 250
HSL
289°, 82%, 89%
CMYK
3, 18, 0, 2
Luminance
0.6992

Every format

HEX#f2cefa
RGBrgb(242, 206, 250)
HSLhsl(289, 82%, 89%)
CMYKcmyk(3%, 18%, 0%, 2%)
LABlab(87.0 20.2 -16.8)
LCHlch(87.0 26.3 320.2)
OKLCHoklch(0.895 0.071 320.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

Cyan3.2%
Magenta17.6%
Yellow0.0%
Key (black)2.0%

Color previews

#f2cefa text on a black background

contrast 14.98:1

Card sample

#f2cefa text on a white background

contrast 1.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2cefa

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2cefa in the Color Lab