Skip to content

#f2edff

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

RGB
242, 237, 255
HSL
257°, 100%, 97%
CMYK
5, 7, 0, 0
Luminance
0.8667

Every format

HEX#f2edff
RGBrgb(242, 237, 255)
HSLhsl(257, 100%, 97%)
CMYKcmyk(5%, 7%, 0%, 0%)
LABlab(94.6 4.9 -8.1)
LCHlch(94.6 9.4 301.4)
OKLCHoklch(0.955 0.025 298.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green92.9%
Blue100.0%

CMYK percentages

Cyan5.1%
Magenta7.1%
Yellow0.0%
Key (black)0.0%

Color previews

#f2edff text on a black background

contrast 18.33:1

Card sample

#f2edff text on a white background

contrast 1.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2edff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2edff in the Color Lab