Skip to content

#f2edfa

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

RGB
242, 237, 250
HSL
263°, 57%, 96%
CMYK
3, 5, 0, 2
Luminance
0.8635

Every format

HEX#f2edfa
RGBrgb(242, 237, 250)
HSLhsl(263, 57%, 96%)
CMYKcmyk(3%, 5%, 0%, 2%)
LABlab(94.5 4.0 -5.7)
LCHlch(94.5 6.9 305.2)
OKLCHoklch(0.954 0.018 303.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green92.9%
Blue98.0%

CMYK percentages

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

Color previews

#f2edfa text on a black background

contrast 18.27:1

Card sample

#f2edfa text on a white background

contrast 1.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2edfa

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2edfa in the Color Lab