Skip to content

#f2ebf6

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

RGB
242, 235, 246
HSL
278°, 38%, 94%
CMYK
2, 5, 0, 4
Luminance
0.8495

Every format

HEX#f2ebf6
RGBrgb(242, 235, 246)
HSLhsl(278, 38%, 94%)
CMYKcmyk(2%, 5%, 0%, 4%)
LABlab(93.9 4.3 -4.5)
LCHlch(93.9 6.2 313.9)
OKLCHoklch(0.949 0.016 313.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2ebf6 on white: 1.17:1
AA ✗ fail · AA-large · AAA
Aa
#f2ebf6 on black: 17.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green92.2%
Blue96.5%

CMYK percentages

Cyan1.6%
Magenta4.5%
Yellow0.0%
Key (black)3.5%

Color previews

#f2ebf6 text on a black background

contrast 17.99:1

Card sample

#f2ebf6 text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2ebf6

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2ebf6 in the Color Lab