Skip to content

#bba2fe

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

RGB
187, 162, 254
HSL
256°, 98%, 82%
CMYK
26, 36, 0, 0
Luminance
0.4356

Every format

HEX#bba2fe
RGBrgb(187, 162, 254)
HSLhsl(256, 98%, 82%)
CMYKcmyk(26%, 36%, 0%, 0%)
LABlab(71.9 28.1 -42.4)
LCHlch(71.9 50.9 303.5)
OKLCHoklch(0.769 0.131 295.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bba2fe on white: 2.16:1
AA ✗ fail · AA-large · AAA
Aa
#bba2fe on black: 9.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red73.3%
Green63.5%
Blue99.6%

CMYK percentages

Cyan26.4%
Magenta36.2%
Yellow0.0%
Key (black)0.4%

Color previews

#bba2fe text on a black background

contrast 9.71:1

Card sample

#bba2fe text on a white background

contrast 2.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #bba2fe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bba2fe in the Color Lab