Skip to content

#bc7afd

a light, electric violet · warm · closest name: violet

RGB
188, 122, 253
HSL
270°, 97%, 74%
CMYK
26, 52, 0, 1
Luminance
0.3170

Every format

HEX#bc7afd
RGBrgb(188, 122, 253)
HSLhsl(270, 97%, 74%)
CMYKcmyk(26%, 52%, 0%, 1%)
LABlab(63.1 50.0 -55.8)
LCHlch(63.1 74.9 311.8)
OKLCHoklch(0.703 0.192 305.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bc7afd on white: 2.86:1
AA ✗ fail · AA-large · AAA
Aa
#bc7afd on black: 7.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red73.7%
Green47.8%
Blue99.2%

CMYK percentages

Cyan25.7%
Magenta51.8%
Yellow0.0%
Key (black)0.8%

Color previews

#bc7afd text on a black background

contrast 7.34:1

Card sample

#bc7afd text on a white background

contrast 2.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #bc7afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bc7afd in the Color Lab