Skip to content

#b22dfd

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

RGB
178, 45, 253
HSL
278°, 98%, 58%
CMYK
30, 82, 0, 1
Luminance
0.1843

Every format

HEX#b22dfd
RGBrgb(178, 45, 253)
HSLhsl(278, 98%, 58%)
CMYKcmyk(30%, 82%, 0%, 1%)
LABlab(50.0 80.6 -77.0)
LCHlch(50.0 111.4 316.3)
OKLCHoklch(0.606 0.281 308.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b22dfd on white: 4.48:1
AA ✗ fail · AA-large · AAA
Aa
#b22dfd on black: 4.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.8%
Green17.6%
Blue99.2%

CMYK percentages

Cyan29.6%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#b22dfd text on a black background

contrast 4.69:1

Card sample

#b22dfd text on a white background

contrast 4.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b22dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b22dfd in the Color Lab