Skip to content

#f0c7fa

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

RGB
240, 199, 250
HSL
288°, 84%, 88%
CMYK
4, 20, 0, 2
Luminance
0.6627

Every format

HEX#f0c7fa
RGBrgb(240, 199, 250)
HSLhsl(288, 84%, 88%)
CMYKcmyk(4%, 20%, 0%, 2%)
LABlab(85.1 23.2 -19.6)
LCHlch(85.1 30.4 319.8)
OKLCHoklch(0.881 0.082 319.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0c7fa on white: 1.47:1
AA ✗ fail · AA-large · AAA
Aa
#f0c7fa on black: 14.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green78.0%
Blue98.0%

CMYK percentages

Cyan4.0%
Magenta20.4%
Yellow0.0%
Key (black)2.0%

Color previews

#f0c7fa text on a black background

contrast 14.25:1

Card sample

#f0c7fa text on a white background

contrast 1.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0c7fa

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0c7fa in the Color Lab