Skip to content

#f0acf0

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

RGB
240, 172, 240
HSL
300°, 69%, 81%
CMYK
0, 28, 0, 6
Luminance
0.5432

Every format

HEX#f0acf0
RGBrgb(240, 172, 240)
HSLhsl(300, 69%, 81%)
CMYKcmyk(0%, 28%, 0%, 6%)
LABlab(78.7 35.7 -24.1)
LCHlch(78.7 43.1 326.0)
OKLCHoklch(0.830 0.118 326.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0acf0 on white: 1.77:1
AA ✗ fail · AA-large · AAA
Aa
#f0acf0 on black: 11.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green67.5%
Blue94.1%

CMYK percentages

Cyan0.0%
Magenta28.3%
Yellow0.0%
Key (black)5.9%

Color previews

#f0acf0 text on a black background

contrast 11.86:1

Card sample

#f0acf0 text on a white background

contrast 1.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0acf0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0acf0 in the Color Lab