Skip to content

#f2cffa

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

RGB
242, 207, 250
HSL
289°, 81%, 90%
CMYK
3, 17, 0, 2
Luminance
0.7041

Every format

HEX#f2cffa
RGBrgb(242, 207, 250)
HSLhsl(289, 81%, 90%)
CMYKcmyk(3%, 17%, 0%, 2%)
LABlab(87.2 19.6 -16.5)
LCHlch(87.2 25.6 320.0)
OKLCHoklch(0.897 0.069 320.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green81.2%
Blue98.0%

CMYK percentages

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

Color previews

#f2cffa text on a black background

contrast 15.08:1

Card sample

#f2cffa text on a white background

contrast 1.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2cffa

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2cffa in the Color Lab