Skip to content

#f0afdb

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

RGB
240, 175, 219
HSL
319°, 68%, 81%
CMYK
0, 27, 9, 6
Luminance
0.5430

Every format

HEX#f0afdb
RGBrgb(240, 175, 219)
HSLhsl(319, 68%, 81%)
CMYKcmyk(0%, 27%, 9%, 6%)
LABlab(78.6 30.4 -12.8)
LCHlch(78.6 33.0 337.3)
OKLCHoklch(0.828 0.094 338.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green68.6%
Blue85.9%

CMYK percentages

Cyan0.0%
Magenta27.1%
Yellow8.8%
Key (black)5.9%

Color previews

#f0afdb text on a black background

contrast 11.86:1

Card sample

#f0afdb text on a white background

contrast 1.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0afdb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0afdb in the Color Lab