Skip to content

#f0cefe

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

RGB
240, 206, 254
HSL
283°, 96%, 90%
CMYK
6, 19, 0, 0
Luminance
0.6982

Every format

HEX#f0cefe
RGBrgb(240, 206, 254)
HSLhsl(283, 96%, 90%)
CMYKcmyk(6%, 19%, 0%, 0%)
LABlab(86.9 20.3 -19.0)
LCHlch(86.9 27.8 316.8)
OKLCHoklch(0.895 0.074 316.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0cefe on white: 1.40:1
AA ✗ fail · AA-large · AAA
Aa
#f0cefe on black: 14.96:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green80.8%
Blue99.6%

CMYK percentages

Cyan5.5%
Magenta18.9%
Yellow0.0%
Key (black)0.4%

Color previews

#f0cefe text on a black background

contrast 14.96:1

Card sample

#f0cefe text on a white background

contrast 1.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0cefe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0cefe in the Color Lab