Skip to content

#f0afe2

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

RGB
240, 175, 226
HSL
313°, 68%, 81%
CMYK
0, 27, 6, 6
Luminance
0.5468

Every format

HEX#f0afe2
RGBrgb(240, 175, 226)
HSLhsl(313, 68%, 81%)
CMYKcmyk(0%, 27%, 6%, 6%)
LABlab(78.9 31.6 -16.2)
LCHlch(78.9 35.6 332.9)
OKLCHoklch(0.830 0.100 334.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green68.6%
Blue88.6%

CMYK percentages

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

Color previews

#f0afe2 text on a black background

contrast 11.94:1

Card sample

#f0afe2 text on a white background

contrast 1.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0afe2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0afe2 in the Color Lab