Skip to content

#f0cff2

a pale, vivid magenta / pink · warm · closest name: lavender

RGB
240, 207, 242
HSL
297°, 57%, 88%
CMYK
1, 15, 0, 5
Luminance
0.6956

Every format

HEX#f0cff2
RGBrgb(240, 207, 242)
HSLhsl(297, 57%, 88%)
CMYKcmyk(1%, 15%, 0%, 5%)
LABlab(86.8 17.5 -12.9)
LCHlch(86.8 21.7 323.6)
OKLCHoklch(0.893 0.059 324.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0cff2 on white: 1.41:1
AA ✗ fail · AA-large · AAA
Aa
#f0cff2 on black: 14.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green81.2%
Blue94.9%

CMYK percentages

Cyan0.8%
Magenta14.5%
Yellow0.0%
Key (black)5.1%

Color previews

#f0cff2 text on a black background

contrast 14.91:1

Card sample

#f0cff2 text on a white background

contrast 1.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0cff2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0cff2 in the Color Lab