Skip to content

#f2edfe

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

RGB
242, 237, 254
HSL
258°, 90%, 96%
CMYK
5, 7, 0, 0
Luminance
0.8660

Every format

HEX#f2edfe
RGBrgb(242, 237, 254)
HSLhsl(258, 90%, 96%)
CMYKcmyk(5%, 7%, 0%, 0%)
LABlab(94.6 4.7 -7.6)
LCHlch(94.6 8.9 302.0)
OKLCHoklch(0.955 0.023 299.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2edfe on white: 1.15:1
AA ✗ fail · AA-large · AAA
Aa
#f2edfe on black: 18.32:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green92.9%
Blue99.6%

CMYK percentages

Cyan4.7%
Magenta6.7%
Yellow0.0%
Key (black)0.4%

Color previews

#f2edfe text on a black background

contrast 18.32:1

Card sample

#f2edfe text on a white background

contrast 1.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2edfe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2edfe in the Color Lab