Skip to content

#ffa2fe

a light, electric magenta / pink · warm · closest name: violet

RGB
255, 162, 254
HSL
301°, 100%, 82%
CMYK
0, 37, 0, 0
Luminance
0.5426

Every format

HEX#ffa2fe
RGBrgb(255, 162, 254)
HSLhsl(301, 100%, 82%)
CMYKcmyk(0%, 37%, 0%, 0%)
LABlab(78.6 48.1 -31.6)
LCHlch(78.6 57.5 326.7)
OKLCHoklch(0.835 0.159 327.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green63.5%
Blue99.6%

CMYK percentages

Cyan0.0%
Magenta36.5%
Yellow0.4%
Key (black)0.0%

Color previews

#ffa2fe text on a black background

contrast 11.85:1

Card sample

#ffa2fe text on a white background

contrast 1.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(255, 162, 254, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 162, 254, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffa2fe;
background: linear-gradient(135deg, #ffa2fe, #FFA2C0);

Monochromatic scale

Palettes built from #ffa2fe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffa2fe in the Color Lab