Skip to content

#b02dfb

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

RGB
176, 45, 251
HSL
278°, 96%, 58%
CMYK
30, 82, 0, 2
Luminance
0.1807

Every format

HEX#b02dfb
RGBrgb(176, 45, 251)
HSLhsl(278, 96%, 58%)
CMYKcmyk(30%, 82%, 0%, 2%)
LABlab(49.6 79.9 -76.6)
LCHlch(49.6 110.7 316.2)
OKLCHoklch(0.602 0.278 308.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b02dfb on white: 4.55:1
AA ✓ pass · AA-large · AAA
Aa
#b02dfb on black: 4.61:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.0%
Green17.6%
Blue98.4%

CMYK percentages

Cyan29.9%
Magenta82.1%
Yellow0.0%
Key (black)1.6%

Color previews

#b02dfb text on a black background

contrast 4.61:1

Card sample

#b02dfb text on a white background

contrast 4.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b02dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b02dfb in the Color Lab