Skip to content

#ff2af0

a balanced, electric magenta / pink · warm · closest name: magenta

RGB
255, 42, 240
HSL
304°, 100%, 58%
CMYK
0, 84, 6, 0
Luminance
0.2921

Every format

HEX#ff2af0
RGBrgb(255, 42, 240)
HSLhsl(304, 100%, 58%)
CMYKcmyk(0%, 84%, 6%, 0%)
LABlab(61.0 91.8 -51.5)
LCHlch(61.0 105.3 330.7)
OKLCHoklch(0.704 0.299 331.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ff2af0 on white: 3.07:1
AA ✗ fail · AA-large · AAA
Aa
#ff2af0 on black: 6.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green16.5%
Blue94.1%

CMYK percentages

Cyan0.0%
Magenta83.5%
Yellow5.9%
Key (black)0.0%

Color previews

#ff2af0 text on a black background

contrast 6.84:1

Card sample

#ff2af0 text on a white background

contrast 3.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ff2af0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ff2af0 in the Color Lab