Skip to content

#b128db

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

RGB
177, 40, 219
HSL
286°, 71%, 51%
CMYK
19, 82, 0, 14
Luminance
0.1598

Every format

HEX#b128db
RGBrgb(177, 40, 219)
HSLhsl(286, 71%, 51%)
CMYKcmyk(19%, 82%, 0%, 14%)
LABlab(47.0 75.3 -62.8)
LCHlch(47.0 98.0 320.2)
OKLCHoklch(0.577 0.256 316.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b128db on white: 5.00:1
AA ✓ pass · AA-large · AAA
Aa
#b128db on black: 4.20:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.4%
Green15.7%
Blue85.9%

CMYK percentages

Cyan19.2%
Magenta81.7%
Yellow0.0%
Key (black)14.1%

Color previews

#b128db text on a black background

contrast 4.20:1

Card sample

#b128db text on a white background

contrast 5.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b128db

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b128db in the Color Lab