Skip to content

#f2dcfb

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

RGB
242, 220, 251
HSL
283°, 80%, 92%
CMYK
4, 12, 0, 2
Luminance
0.7703

Every format

HEX#f2dcfb
RGBrgb(242, 220, 251)
HSLhsl(283, 80%, 92%)
CMYKcmyk(4%, 12%, 0%, 2%)
LABlab(90.3 13.0 -12.3)
LCHlch(90.3 17.9 316.6)
OKLCHoklch(0.922 0.048 316.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2dcfb on white: 1.28:1
AA ✗ fail · AA-large · AAA
Aa
#f2dcfb on black: 16.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green86.3%
Blue98.4%

CMYK percentages

Cyan3.6%
Magenta12.4%
Yellow0.0%
Key (black)1.6%

Color previews

#f2dcfb text on a black background

contrast 16.41:1

Card sample

#f2dcfb text on a white background

contrast 1.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2dcfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2dcfb in the Color Lab