Skip to content

#f0bafe

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

RGB
240, 186, 254
HSL
288°, 97%, 86%
CMYK
6, 27, 0, 0
Luminance
0.6080

Every format

HEX#f0bafe
RGBrgb(240, 186, 254)
HSLhsl(288, 97%, 86%)
CMYKcmyk(6%, 27%, 0%, 0%)
LABlab(82.3 30.9 -26.1)
LCHlch(82.3 40.4 319.8)
OKLCHoklch(0.859 0.108 319.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green72.9%
Blue99.6%

CMYK percentages

Cyan5.5%
Magenta26.8%
Yellow0.0%
Key (black)0.4%

Color previews

#f0bafe text on a black background

contrast 13.16:1

Card sample

#f0bafe text on a white background

contrast 1.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0bafe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0bafe in the Color Lab