Skip to content

#eb2afe

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

RGB
235, 42, 254
HSL
295°, 99%, 58%
CMYK
8, 84, 0, 0
Luminance
0.2647

Every format

HEX#eb2afe
RGBrgb(235, 42, 254)
HSLhsl(295, 99%, 58%)
CMYKcmyk(8%, 84%, 0%, 0%)
LABlab(58.5 90.4 -63.4)
LCHlch(58.5 110.4 325.0)
OKLCHoklch(0.682 0.301 323.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#eb2afe on white: 3.34:1
AA ✗ fail · AA-large · AAA
Aa
#eb2afe on black: 6.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.2%
Green16.5%
Blue99.6%

CMYK percentages

Cyan7.5%
Magenta83.5%
Yellow0.0%
Key (black)0.4%

Color previews

#eb2afe text on a black background

contrast 6.29:1

Card sample

#eb2afe text on a white background

contrast 3.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #eb2afe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #eb2afe in the Color Lab