Skip to content

#f0ebfa

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

RGB
240, 235, 250
HSL
260°, 60%, 95%
CMYK
4, 6, 0, 2
Luminance
0.8484

Every format

HEX#f0ebfa
RGBrgb(240, 235, 250)
HSLhsl(260, 60%, 95%)
CMYKcmyk(4%, 6%, 0%, 2%)
LABlab(93.8 4.4 -6.6)
LCHlch(93.8 7.9 303.4)
OKLCHoklch(0.948 0.021 301.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green92.2%
Blue98.0%

CMYK percentages

Cyan4.0%
Magenta6.0%
Yellow0.0%
Key (black)2.0%

Color previews

#f0ebfa text on a black background

contrast 17.97:1

Card sample

#f0ebfa text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0ebfa

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0ebfa in the Color Lab