Skip to content

#f0acff

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

RGB
240, 172, 255
HSL
289°, 100%, 84%
CMYK
6, 33, 0, 0
Luminance
0.5525

Every format

HEX#f0acff
RGBrgb(240, 172, 255)
HSLhsl(289, 100%, 84%)
CMYKcmyk(6%, 33%, 0%, 0%)
LABlab(79.2 38.5 -31.3)
LCHlch(79.2 49.6 320.9)
OKLCHoklch(0.836 0.134 320.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0acff on white: 1.74:1
AA ✗ fail · AA-large · AAA
Aa
#f0acff on black: 12.05:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green67.5%
Blue100.0%

CMYK percentages

Cyan5.9%
Magenta32.5%
Yellow0.0%
Key (black)0.0%

Color previews

#f0acff text on a black background

contrast 12.05:1

Card sample

#f0acff text on a white background

contrast 1.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0acff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0acff in the Color Lab