Skip to content

#f0a2df

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

RGB
240, 162, 223
HSL
313°, 72%, 79%
CMYK
0, 33, 7, 6
Luminance
0.4969

Every format

HEX#f0a2df
RGBrgb(240, 162, 223)
HSLhsl(313, 72%, 79%)
CMYKcmyk(0%, 33%, 7%, 6%)
LABlab(75.9 38.0 -19.1)
LCHlch(75.9 42.5 333.3)
OKLCHoklch(0.807 0.120 334.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0a2df on white: 1.92:1
AA ✗ fail · AA-large · AAA
Aa
#f0a2df on black: 10.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green63.5%
Blue87.5%

CMYK percentages

Cyan0.0%
Magenta32.5%
Yellow7.1%
Key (black)5.9%

Color previews

#f0a2df text on a black background

contrast 10.94:1

Card sample

#f0a2df text on a white background

contrast 1.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0a2df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0a2df in the Color Lab