Skip to content

#f0c8fd

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

RGB
240, 200, 253
HSL
285°, 93%, 89%
CMYK
5, 21, 0, 1
Luminance
0.6693

Every format

HEX#f0c8fd
RGBrgb(240, 200, 253)
HSLhsl(285, 93%, 89%)
CMYKcmyk(5%, 21%, 0%, 1%)
LABlab(85.5 23.3 -20.7)
LCHlch(85.5 31.1 318.4)
OKLCHoklch(0.884 0.083 317.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0c8fd on white: 1.46:1
AA ✗ fail · AA-large · AAA
Aa
#f0c8fd on black: 14.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green78.4%
Blue99.2%

CMYK percentages

Cyan5.1%
Magenta20.9%
Yellow0.0%
Key (black)0.8%

Color previews

#f0c8fd text on a black background

contrast 14.39:1

Card sample

#f0c8fd text on a white background

contrast 1.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0c8fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0c8fd in the Color Lab