Skip to content

#b42fdf

a balanced, vivid violet · warm · closest name: magenta

RGB
180, 47, 223
HSL
285°, 73%, 53%
CMYK
19, 79, 0, 13
Luminance
0.1706

Every format

HEX#b42fdf
RGBrgb(180, 47, 223)
HSLhsl(285, 73%, 53%)
CMYKcmyk(19%, 79%, 0%, 13%)
LABlab(48.3 74.6 -62.8)
LCHlch(48.3 97.5 319.9)
OKLCHoklch(0.588 0.255 316.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b42fdf on white: 4.76:1
AA ✓ pass · AA-large · AAA
Aa
#b42fdf on black: 4.41:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red70.6%
Green18.4%
Blue87.5%

CMYK percentages

Cyan19.3%
Magenta78.9%
Yellow0.0%
Key (black)12.5%

Color previews

#b42fdf text on a black background

contrast 4.41:1

Card sample

#b42fdf text on a white background

contrast 4.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(180, 47, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(180, 47, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b42fdf;
background: linear-gradient(135deg, #b42fdf, #DF2F95);

Monochromatic scale

Palettes built from #b42fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b42fdf in the Color Lab