Skip to content

#b45df2

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

RGB
180, 93, 242
HSL
275°, 85%, 66%
CMYK
26, 62, 0, 5
Luminance
0.2394

Every format

HEX#b45df2
RGBrgb(180, 93, 242)
HSLhsl(275, 85%, 66%)
CMYKcmyk(26%, 62%, 0%, 5%)
LABlab(56.0 60.3 -61.1)
LCHlch(56.0 85.8 314.6)
OKLCHoklch(0.647 0.220 308.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b45df2 on white: 3.63:1
AA ✗ fail · AA-large · AAA
Aa
#b45df2 on black: 5.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

Cyan25.6%
Magenta61.6%
Yellow0.0%
Key (black)5.1%

Color previews

#b45df2 text on a black background

contrast 5.79:1

Card sample

#b45df2 text on a white background

contrast 3.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b45df2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b45df2 in the Color Lab