Skip to content

#f2ebfa

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

RGB
242, 235, 250
HSL
268°, 60%, 95%
CMYK
3, 6, 0, 2
Luminance
0.8520

Every format

HEX#f2ebfa
RGBrgb(242, 235, 250)
HSLhsl(268, 60%, 95%)
CMYKcmyk(3%, 6%, 0%, 2%)
LABlab(94.0 5.0 -6.4)
LCHlch(94.0 8.1 308.2)
OKLCHoklch(0.950 0.021 306.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2ebfa on white: 1.16:1
AA ✗ fail · AA-large · AAA
Aa
#f2ebfa on black: 18.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

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

Color previews

#f2ebfa text on a black background

contrast 18.04:1

Card sample

#f2ebfa text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2ebfa

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2ebfa in the Color Lab