Skip to content

#bc2fea

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

RGB
188, 47, 234
HSL
285°, 82%, 55%
CMYK
20, 80, 0, 8
Luminance
0.1866

Every format

HEX#bc2fea
RGBrgb(188, 47, 234)
HSLhsl(285, 82%, 55%)
CMYKcmyk(20%, 80%, 0%, 8%)
LABlab(50.3 78.0 -65.8)
LCHlch(50.3 102.1 319.9)
OKLCHoklch(0.607 0.266 315.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bc2fea on white: 4.44:1
AA ✗ fail · AA-large · AAA
Aa
#bc2fea on black: 4.73:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red73.7%
Green18.4%
Blue91.8%

CMYK percentages

Cyan19.7%
Magenta79.9%
Yellow0.0%
Key (black)8.2%

Color previews

#bc2fea text on a black background

contrast 4.73:1

Card sample

#bc2fea text on a white background

contrast 4.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #bc2fea

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bc2fea in the Color Lab