Skip to content

#b02dfd

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

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

Every format

HEX#b02dfd
RGBrgb(176, 45, 253)
HSLhsl(278, 98%, 58%)
CMYKcmyk(30%, 82%, 0%, 1%)
LABlab(49.7 80.3 -77.4)
LCHlch(49.7 111.6 316.0)
OKLCHoklch(0.604 0.280 308.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b02dfd on white: 4.53:1
AA ✓ pass · AA-large · AAA
Aa
#b02dfd on black: 4.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.0%
Green17.6%
Blue99.2%

CMYK percentages

Cyan30.4%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#b02dfd text on a black background

contrast 4.64:1

Card sample

#b02dfd text on a white background

contrast 4.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b02dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b02dfd in the Color Lab