Skip to content

#bc2afd

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

RGB
188, 42, 253
HSL
282°, 98%, 58%
CMYK
26, 83, 0, 1
Luminance
0.1944

Every format

HEX#bc2afd
RGBrgb(188, 42, 253)
HSLhsl(282, 98%, 58%)
CMYKcmyk(26%, 83%, 0%, 1%)
LABlab(51.2 82.8 -75.0)
LCHlch(51.2 111.7 317.8)
OKLCHoklch(0.617 0.285 311.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bc2afd on white: 4.30:1
AA ✗ fail · AA-large · AAA
Aa
#bc2afd on black: 4.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red73.7%
Green16.5%
Blue99.2%

CMYK percentages

Cyan25.7%
Magenta83.4%
Yellow0.0%
Key (black)0.8%

Color previews

#bc2afd text on a black background

contrast 4.89:1

Card sample

#bc2afd text on a white background

contrast 4.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #bc2afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bc2afd in the Color Lab