Skip to content

#f0c2ff

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

RGB
240, 194, 255
HSL
285°, 100%, 88%
CMYK
6, 24, 0, 0
Luminance
0.6433

Every format

HEX#f0c2ff
RGBrgb(240, 194, 255)
HSLhsl(285, 100%, 88%)
CMYKcmyk(6%, 24%, 0%, 0%)
LABlab(84.1 26.8 -23.8)
LCHlch(84.1 35.9 318.5)
OKLCHoklch(0.874 0.096 317.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0c2ff on white: 1.51:1
AA ✗ fail · AA-large · AAA
Aa
#f0c2ff on black: 13.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green76.1%
Blue100.0%

CMYK percentages

Cyan5.9%
Magenta23.9%
Yellow0.0%
Key (black)0.0%

Color previews

#f0c2ff text on a black background

contrast 13.87:1

Card sample

#f0c2ff text on a white background

contrast 1.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0c2ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0c2ff in the Color Lab