Skip to content

#f0ebfc

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

RGB
240, 235, 252
HSL
258°, 74%, 96%
CMYK
5, 7, 0, 1
Luminance
0.8497

Every format

HEX#f0ebfc
RGBrgb(240, 235, 252)
HSLhsl(258, 74%, 96%)
CMYKcmyk(5%, 7%, 0%, 1%)
LABlab(93.9 4.7 -7.6)
LCHlch(93.9 8.9 302.0)
OKLCHoklch(0.949 0.023 299.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green92.2%
Blue98.8%

CMYK percentages

Cyan4.8%
Magenta6.7%
Yellow0.0%
Key (black)1.2%

Color previews

#f0ebfc text on a black background

contrast 17.99:1

Card sample

#f0ebfc text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0ebfc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0ebfc in the Color Lab