Skip to content

#bb4cf2

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

RGB
187, 76, 242
HSL
280°, 87%, 62%
CMYK
23, 69, 0, 5
Luminance
0.2214

Every format

HEX#bb4cf2
RGBrgb(187, 76, 242)
HSLhsl(280, 87%, 62%)
CMYKcmyk(23%, 69%, 0%, 5%)
LABlab(54.2 69.4 -64.0)
LCHlch(54.2 94.4 317.3)
OKLCHoklch(0.636 0.244 312.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bb4cf2 on white: 3.87:1
AA ✗ fail · AA-large · AAA
Aa
#bb4cf2 on black: 5.43:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red73.3%
Green29.8%
Blue94.9%

CMYK percentages

Cyan22.7%
Magenta68.6%
Yellow0.0%
Key (black)5.1%

Color previews

#bb4cf2 text on a black background

contrast 5.43:1

Card sample

#bb4cf2 text on a white background

contrast 3.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #bb4cf2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bb4cf2 in the Color Lab