Skip to content

#ffcef2

a pale, electric magenta / pink · warm · closest name: pink

RGB
255, 206, 242
HSL
316°, 100%, 90%
CMYK
0, 19, 5, 0
Luminance
0.7181

Every format

HEX#ffcef2
RGBrgb(255, 206, 242)
HSLhsl(316, 100%, 90%)
CMYKcmyk(0%, 19%, 5%, 0%)
LABlab(87.9 23.0 -11.1)
LCHlch(87.9 25.6 334.2)
OKLCHoklch(0.904 0.072 335.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffcef2 on white: 1.37:1
AA ✗ fail · AA-large · AAA
Aa
#ffcef2 on black: 15.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green80.8%
Blue94.9%

CMYK percentages

Cyan0.0%
Magenta19.2%
Yellow5.1%
Key (black)0.0%

Color previews

#ffcef2 text on a black background

contrast 15.36:1

Card sample

#ffcef2 text on a white background

contrast 1.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffcef2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffcef2 in the Color Lab