Skip to content

#f0bfef

a light, vivid magenta / pink · warm · closest name: plum

RGB
240, 191, 239
HSL
301°, 62%, 85%
CMYK
0, 20, 0, 6
Luminance
0.6202

Every format

HEX#f0bfef
RGBrgb(240, 191, 239)
HSLhsl(301, 62%, 85%)
CMYKcmyk(0%, 20%, 0%, 6%)
LABlab(82.9 25.4 -17.1)
LCHlch(82.9 30.6 326.1)
OKLCHoklch(0.863 0.084 326.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0bfef on white: 1.57:1
AA ✗ fail · AA-large · AAA
Aa
#f0bfef on black: 13.40:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green74.9%
Blue93.7%

CMYK percentages

Cyan0.0%
Magenta20.4%
Yellow0.4%
Key (black)5.9%

Color previews

#f0bfef text on a black background

contrast 13.40:1

Card sample

#f0bfef text on a white background

contrast 1.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0bfef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0bfef in the Color Lab