Skip to content

#f0d4ff

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

RGB
240, 212, 255
HSL
279°, 100%, 92%
CMYK
6, 17, 0, 0
Luminance
0.7283

Every format

HEX#f0d4ff
RGBrgb(240, 212, 255)
HSLhsl(279, 100%, 92%)
CMYKcmyk(6%, 17%, 0%, 0%)
LABlab(88.4 17.3 -17.4)
LCHlch(88.4 24.5 314.9)
OKLCHoklch(0.906 0.065 313.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0d4ff on white: 1.35:1
AA ✗ fail · AA-large · AAA
Aa
#f0d4ff on black: 15.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green83.1%
Blue100.0%

CMYK percentages

Cyan5.9%
Magenta16.9%
Yellow0.0%
Key (black)0.0%

Color previews

#f0d4ff text on a black background

contrast 15.57:1

Card sample

#f0d4ff text on a white background

contrast 1.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0d4ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0d4ff in the Color Lab