Skip to content

#f0cdfb

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

RGB
240, 205, 251
HSL
286°, 85%, 89%
CMYK
4, 18, 0, 2
Luminance
0.6915

Every format

HEX#f0cdfb
RGBrgb(240, 205, 251)
HSLhsl(286, 85%, 89%)
CMYKcmyk(4%, 18%, 0%, 2%)
LABlab(86.6 20.2 -17.9)
LCHlch(86.6 27.1 318.4)
OKLCHoklch(0.892 0.072 318.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green80.4%
Blue98.4%

CMYK percentages

Cyan4.4%
Magenta18.3%
Yellow0.0%
Key (black)1.6%

Color previews

#f0cdfb text on a black background

contrast 14.83:1

Card sample

#f0cdfb text on a white background

contrast 1.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0cdfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0cdfb in the Color Lab