Skip to content

#f0afda

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

RGB
240, 175, 218
HSL
320°, 68%, 81%
CMYK
0, 27, 9, 6
Luminance
0.5425

Every format

HEX#f0afda
RGBrgb(240, 175, 218)
HSLhsl(320, 68%, 81%)
CMYKcmyk(0%, 27%, 9%, 6%)
LABlab(78.6 30.3 -12.3)
LCHlch(78.6 32.7 337.9)
OKLCHoklch(0.827 0.093 339.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green68.6%
Blue85.5%

CMYK percentages

Cyan0.0%
Magenta27.1%
Yellow9.2%
Key (black)5.9%

Color previews

#f0afda text on a black background

contrast 11.85:1

Card sample

#f0afda text on a white background

contrast 1.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0afda

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0afda in the Color Lab