Skip to content

#b45ef1

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

RGB
180, 94, 241
HSL
275°, 84%, 66%
CMYK
25, 61, 0, 6
Luminance
0.2406

Every format

HEX#b45ef1
RGBrgb(180, 94, 241)
HSLhsl(275, 84%, 66%)
CMYKcmyk(25%, 61%, 0%, 6%)
LABlab(56.1 59.6 -60.3)
LCHlch(56.1 84.8 314.6)
OKLCHoklch(0.648 0.217 308.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b45ef1 on white: 3.61:1
AA ✗ fail · AA-large · AAA
Aa
#b45ef1 on black: 5.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red70.6%
Green36.9%
Blue94.5%

CMYK percentages

Cyan25.3%
Magenta61.0%
Yellow0.0%
Key (black)5.5%

Color previews

#b45ef1 text on a black background

contrast 5.81:1

Card sample

#b45ef1 text on a white background

contrast 3.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(180, 94, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(180, 94, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b45ef1;
background: linear-gradient(135deg, #b45ef1, #F15ECC);

Monochromatic scale

Palettes built from #b45ef1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b45ef1 in the Color Lab