Skip to content

#f0acf5

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

RGB
240, 172, 245
HSL
296°, 79%, 82%
CMYK
2, 30, 0, 4
Luminance
0.5462

Every format

HEX#f0acf5
RGBrgb(240, 172, 245)
HSLhsl(296, 79%, 82%)
CMYKcmyk(2%, 30%, 0%, 4%)
LABlab(78.8 36.6 -26.5)
LCHlch(78.8 45.2 324.1)
OKLCHoklch(0.832 0.123 324.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0acf5 on white: 1.76:1
AA ✗ fail · AA-large · AAA
Aa
#f0acf5 on black: 11.92:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green67.5%
Blue96.1%

CMYK percentages

Cyan2.0%
Magenta29.8%
Yellow0.0%
Key (black)3.9%

Color previews

#f0acf5 text on a black background

contrast 11.92:1

Card sample

#f0acf5 text on a white background

contrast 1.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0acf5

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0acf5 in the Color Lab