Skip to content

#bc40fd

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

RGB
188, 64, 253
HSL
279°, 98%, 62%
CMYK
26, 75, 0, 1
Luminance
0.2145

Every format

HEX#bc40fd
RGBrgb(188, 64, 253)
HSLhsl(279, 98%, 62%)
CMYKcmyk(26%, 75%, 0%, 1%)
LABlab(53.4 76.3 -71.3)
LCHlch(53.4 104.5 316.9)
OKLCHoklch(0.633 0.267 310.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bc40fd on white: 3.97:1
AA ✗ fail · AA-large · AAA
Aa
#bc40fd on black: 5.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red73.7%
Green25.1%
Blue99.2%

CMYK percentages

Cyan25.7%
Magenta74.7%
Yellow0.0%
Key (black)0.8%

Color previews

#bc40fd text on a black background

contrast 5.29:1

Card sample

#bc40fd text on a white background

contrast 3.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #bc40fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bc40fd in the Color Lab