Skip to content

#f0ccff

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

RGB
240, 204, 255
HSL
282°, 100%, 90%
CMYK
6, 20, 0, 0
Luminance
0.6893

Every format

HEX#f0ccff
RGBrgb(240, 204, 255)
HSLhsl(282, 100%, 90%)
CMYKcmyk(6%, 20%, 0%, 0%)
LABlab(86.5 21.5 -20.2)
LCHlch(86.5 29.6 316.8)
OKLCHoklch(0.892 0.079 315.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green80.0%
Blue100.0%

CMYK percentages

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

Color previews

#f0ccff text on a black background

contrast 14.79:1

Card sample

#f0ccff text on a white background

contrast 1.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0ccff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0ccff in the Color Lab