Skip to content

#b451f1

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

RGB
180, 81, 241
HSL
277°, 85%, 63%
CMYK
25, 66, 0, 6
Luminance
0.2194

Every format

HEX#b451f1
RGBrgb(180, 81, 241)
HSLhsl(277, 85%, 63%)
CMYKcmyk(25%, 66%, 0%, 6%)
LABlab(54.0 65.6 -63.9)
LCHlch(54.0 91.6 315.8)
OKLCHoklch(0.632 0.235 309.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b451f1 on white: 3.90:1
AA ✗ fail · AA-large · AAA
Aa
#b451f1 on black: 5.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red70.6%
Green31.8%
Blue94.5%

CMYK percentages

Cyan25.3%
Magenta66.4%
Yellow0.0%
Key (black)5.5%

Color previews

#b451f1 text on a black background

contrast 5.39:1

Card sample

#b451f1 text on a white background

contrast 3.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b451f1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b451f1 in the Color Lab