Skip to content

#f0afdf

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

RGB
240, 175, 223
HSL
316°, 68%, 81%
CMYK
0, 27, 7, 6
Luminance
0.5451

Every format

HEX#f0afdf
RGBrgb(240, 175, 223)
HSLhsl(316, 68%, 81%)
CMYKcmyk(0%, 27%, 7%, 6%)
LABlab(78.8 31.1 -14.7)
LCHlch(78.8 34.4 334.7)
OKLCHoklch(0.829 0.098 336.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green68.6%
Blue87.5%

CMYK percentages

Cyan0.0%
Magenta27.1%
Yellow7.1%
Key (black)5.9%

Color previews

#f0afdf text on a black background

contrast 11.90:1

Card sample

#f0afdf text on a white background

contrast 1.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0afdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0afdf in the Color Lab