Skip to content

#fb2dfd

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

RGB
251, 45, 253
HSL
299°, 98%, 58%
CMYK
1, 82, 0, 1
Luminance
0.2948

Every format

HEX#fb2dfd
RGBrgb(251, 45, 253)
HSLhsl(299, 98%, 58%)
CMYKcmyk(1%, 82%, 0%, 1%)
LABlab(61.2 92.4 -58.4)
LCHlch(61.2 109.3 327.7)
OKLCHoklch(0.706 0.304 327.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fb2dfd on white: 3.05:1
AA ✗ fail · AA-large · AAA
Aa
#fb2dfd on black: 6.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.4%
Green17.6%
Blue99.2%

CMYK percentages

Cyan0.8%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#fb2dfd text on a black background

contrast 6.90:1

Card sample

#fb2dfd text on a white background

contrast 3.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(251, 45, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(251, 45, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fb2dfd;
background: linear-gradient(135deg, #fb2dfd, #FD2D74);

Monochromatic scale

Palettes built from #fb2dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fb2dfd in the Color Lab