Skip to content

#f0ccfd

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

RGB
240, 204, 253
HSL
284°, 93%, 90%
CMYK
5, 19, 0, 1
Luminance
0.6880

Every format

HEX#f0ccfd
RGBrgb(240, 204, 253)
HSLhsl(284, 93%, 90%)
CMYKcmyk(5%, 19%, 0%, 1%)
LABlab(86.4 21.1 -19.3)
LCHlch(86.4 28.6 317.7)
OKLCHoklch(0.891 0.076 317.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0ccfd on white: 1.42:1
AA ✗ fail · AA-large · AAA
Aa
#f0ccfd on black: 14.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green80.0%
Blue99.2%

CMYK percentages

Cyan5.1%
Magenta19.4%
Yellow0.0%
Key (black)0.8%

Color previews

#f0ccfd text on a black background

contrast 14.76:1

Card sample

#f0ccfd text on a white background

contrast 1.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0ccfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0ccfd in the Color Lab