Skip to content

#b12dfb

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

RGB
177, 45, 251
HSL
278°, 96%, 58%
CMYK
30, 82, 0, 2
Luminance
0.1819

Every format

HEX#b12dfb
RGBrgb(177, 45, 251)
HSLhsl(278, 96%, 58%)
CMYKcmyk(30%, 82%, 0%, 2%)
LABlab(49.7 80.1 -76.3)
LCHlch(49.7 110.6 316.4)
OKLCHoklch(0.603 0.279 308.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b12dfb on white: 4.53:1
AA ✓ pass · AA-large · AAA
Aa
#b12dfb on black: 4.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.4%
Green17.6%
Blue98.4%

CMYK percentages

Cyan29.5%
Magenta82.1%
Yellow0.0%
Key (black)1.6%

Color previews

#b12dfb text on a black background

contrast 4.64:1

Card sample

#b12dfb text on a white background

contrast 4.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(177, 45, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(177, 45, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b12dfb;
background: linear-gradient(135deg, #b12dfb, #FB2DBC);

Monochromatic scale

Palettes built from #b12dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b12dfb in the Color Lab