Skip to content

#f0bafd

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

RGB
240, 186, 253
HSL
288°, 94%, 86%
CMYK
5, 27, 0, 1
Luminance
0.6073

Every format

HEX#f0bafd
RGBrgb(240, 186, 253)
HSLhsl(288, 94%, 86%)
CMYKcmyk(5%, 27%, 0%, 1%)
LABlab(82.2 30.7 -25.6)
LCHlch(82.2 40.0 320.2)
OKLCHoklch(0.859 0.107 319.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0bafd on white: 1.60:1
AA ✗ fail · AA-large · AAA
Aa
#f0bafd on black: 13.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green72.9%
Blue99.2%

CMYK percentages

Cyan5.1%
Magenta26.5%
Yellow0.0%
Key (black)0.8%

Color previews

#f0bafd text on a black background

contrast 13.15:1

Card sample

#f0bafd text on a white background

contrast 1.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0bafd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0bafd in the Color Lab