Skip to content

#eb2afb

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

RGB
235, 42, 251
HSL
295°, 96%, 58%
CMYK
6, 83, 0, 2
Luminance
0.2628

Every format

HEX#eb2afb
RGBrgb(235, 42, 251)
HSLhsl(295, 96%, 58%)
CMYKcmyk(6%, 83%, 0%, 2%)
LABlab(58.3 90.0 -62.0)
LCHlch(58.3 109.3 325.4)
OKLCHoklch(0.681 0.299 324.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#eb2afb on white: 3.36:1
AA ✗ fail · AA-large · AAA
Aa
#eb2afb on black: 6.26:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.2%
Green16.5%
Blue98.4%

CMYK percentages

Cyan6.4%
Magenta83.3%
Yellow0.0%
Key (black)1.6%

Color previews

#eb2afb text on a black background

contrast 6.26:1

Card sample

#eb2afb text on a white background

contrast 3.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #eb2afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #eb2afb in the Color Lab