Skip to content

#f0c2fe

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

RGB
240, 194, 254
HSL
286°, 97%, 88%
CMYK
6, 24, 0, 0
Luminance
0.6426

Every format

HEX#f0c2fe
RGBrgb(240, 194, 254)
HSLhsl(286, 97%, 88%)
CMYKcmyk(6%, 24%, 0%, 0%)
LABlab(84.1 26.6 -23.3)
LCHlch(84.1 35.4 318.8)
OKLCHoklch(0.873 0.095 318.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0c2fe on white: 1.52:1
AA ✗ fail · AA-large · AAA
Aa
#f0c2fe on black: 13.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green76.1%
Blue99.6%

CMYK percentages

Cyan5.5%
Magenta23.6%
Yellow0.0%
Key (black)0.4%

Color previews

#f0c2fe text on a black background

contrast 13.85:1

Card sample

#f0c2fe text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0c2fe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0c2fe in the Color Lab