Skip to content

#f0cef3

a pale, vivid magenta / pink · warm · closest name: lavender

RGB
240, 206, 243
HSL
295°, 61%, 88%
CMYK
1, 15, 0, 5
Luminance
0.6914

Every format

HEX#f0cef3
RGBrgb(240, 206, 243)
HSLhsl(295, 61%, 88%)
CMYKcmyk(1%, 15%, 0%, 5%)
LABlab(86.6 18.2 -13.7)
LCHlch(86.6 22.8 323.0)
OKLCHoklch(0.891 0.062 323.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green80.8%
Blue95.3%

CMYK percentages

Cyan1.2%
Magenta15.2%
Yellow0.0%
Key (black)4.7%

Color previews

#f0cef3 text on a black background

contrast 14.83:1

Card sample

#f0cef3 text on a white background

contrast 1.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0cef3

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0cef3 in the Color Lab