Skip to content

#f2def6

a pale, vivid magenta / pink · warm · closest name: lavender

RGB
242, 222, 246
HSL
290°, 57%, 92%
CMYK
2, 10, 0, 4
Luminance
0.7777

Every format

HEX#f2def6
RGBrgb(242, 222, 246)
HSLhsl(290, 57%, 92%)
CMYKcmyk(2%, 10%, 0%, 4%)
LABlab(90.7 11.0 -9.2)
LCHlch(90.7 14.3 320.2)
OKLCHoklch(0.924 0.038 320.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2def6 on white: 1.27:1
AA ✗ fail · AA-large · AAA
Aa
#f2def6 on black: 16.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green87.1%
Blue96.5%

CMYK percentages

Cyan1.6%
Magenta9.8%
Yellow0.0%
Key (black)3.5%

Color previews

#f2def6 text on a black background

contrast 16.55:1

Card sample

#f2def6 text on a white background

contrast 1.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2def6

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2def6 in the Color Lab