Skip to content

#b02df5

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

RGB
176, 45, 245
HSL
279°, 91%, 57%
CMYK
28, 82, 0, 4
Luminance
0.1770

Every format

HEX#b02df5
RGBrgb(176, 45, 245)
HSLhsl(279, 91%, 57%)
CMYKcmyk(28%, 82%, 0%, 4%)
LABlab(49.1 78.7 -74.0)
LCHlch(49.1 108.0 316.8)
OKLCHoklch(0.598 0.273 309.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b02df5 on white: 4.63:1
AA ✓ pass · AA-large · AAA
Aa
#b02df5 on black: 4.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.0%
Green17.6%
Blue96.1%

CMYK percentages

Cyan28.2%
Magenta81.6%
Yellow0.0%
Key (black)3.9%

Color previews

#b02df5 text on a black background

contrast 4.54:1

Card sample

#b02df5 text on a white background

contrast 4.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b02df5

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b02df5 in the Color Lab