Skip to content

#bba2f9

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

RGB
187, 162, 249
HSL
257°, 88%, 81%
CMYK
25, 35, 0, 2
Luminance
0.4325

Every format

HEX#bba2f9
RGBrgb(187, 162, 249)
HSLhsl(257, 88%, 81%)
CMYKcmyk(25%, 35%, 0%, 2%)
LABlab(71.7 26.9 -40.1)
LCHlch(71.7 48.3 303.9)
OKLCHoklch(0.767 0.124 296.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bba2f9 on white: 2.18:1
AA ✗ fail · AA-large · AAA
Aa
#bba2f9 on black: 9.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red73.3%
Green63.5%
Blue97.6%

CMYK percentages

Cyan24.9%
Magenta34.9%
Yellow0.0%
Key (black)2.4%

Color previews

#bba2f9 text on a black background

contrast 9.65:1

Card sample

#bba2f9 text on a white background

contrast 2.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #bba2f9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bba2f9 in the Color Lab