Skip to content

#f0acf4

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

RGB
240, 172, 244
HSL
297°, 77%, 82%
CMYK
2, 30, 0, 4
Luminance
0.5456

Every format

HEX#f0acf4
RGBrgb(240, 172, 244)
HSLhsl(297, 77%, 82%)
CMYKcmyk(2%, 30%, 0%, 4%)
LABlab(78.8 36.5 -26.0)
LCHlch(78.8 44.8 324.5)
OKLCHoklch(0.832 0.122 324.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green67.5%
Blue95.7%

CMYK percentages

Cyan1.6%
Magenta29.5%
Yellow0.0%
Key (black)4.3%

Color previews

#f0acf4 text on a black background

contrast 11.91:1

Card sample

#f0acf4 text on a white background

contrast 1.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0acf4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0acf4 in the Color Lab