Skip to content

#f2cafd

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

RGB
242, 202, 253
HSL
287°, 93%, 89%
CMYK
4, 20, 0, 1
Luminance
0.6821

Every format

HEX#f2cafd
RGBrgb(242, 202, 253)
HSLhsl(287, 93%, 89%)
CMYKcmyk(4%, 20%, 0%, 1%)
LABlab(86.1 22.9 -19.7)
LCHlch(86.1 30.2 319.2)
OKLCHoklch(0.889 0.081 318.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2cafd on white: 1.43:1
AA ✗ fail · AA-large · AAA
Aa
#f2cafd on black: 14.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green79.2%
Blue99.2%

CMYK percentages

Cyan4.3%
Magenta20.2%
Yellow0.0%
Key (black)0.8%

Color previews

#f2cafd text on a black background

contrast 14.64:1

Card sample

#f2cafd text on a white background

contrast 1.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2cafd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2cafd in the Color Lab