Skip to content

#f0afd2

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

RGB
240, 175, 210
HSL
328°, 68%, 81%
CMYK
0, 27, 13, 6
Luminance
0.5384

Every format

HEX#f0afd2
RGBrgb(240, 175, 210)
HSLhsl(328, 68%, 81%)
CMYKcmyk(0%, 27%, 13%, 6%)
LABlab(78.4 28.9 -8.3)
LCHlch(78.4 30.1 344.0)
OKLCHoklch(0.825 0.088 345.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0afd2 on white: 1.78:1
AA ✗ fail · AA-large · AAA
Aa
#f0afd2 on black: 11.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green68.6%
Blue82.4%

CMYK percentages

Cyan0.0%
Magenta27.1%
Yellow12.5%
Key (black)5.9%

Color previews

#f0afd2 text on a black background

contrast 11.77:1

Card sample

#f0afd2 text on a white background

contrast 1.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0afd2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0afd2 in the Color Lab