Skip to content

#b02ff2

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

RGB
176, 47, 242
HSL
280°, 88%, 57%
CMYK
27, 81, 0, 5
Luminance
0.1767

Every format

HEX#b02ff2
RGBrgb(176, 47, 242)
HSLhsl(280, 88%, 57%)
CMYKcmyk(27%, 81%, 0%, 5%)
LABlab(49.1 77.6 -72.3)
LCHlch(49.1 106.1 317.0)
OKLCHoklch(0.597 0.269 310.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red69.0%
Green18.4%
Blue94.9%

CMYK percentages

Cyan27.3%
Magenta80.6%
Yellow0.0%
Key (black)5.1%

Color previews

#b02ff2 text on a black background

contrast 4.53:1

Card sample

#b02ff2 text on a white background

contrast 4.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b02ff2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b02ff2 in the Color Lab