Skip to content

#b22ace

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

RGB
178, 42, 206
HSL
290°, 66%, 49%
CMYK
14, 80, 0, 19
Luminance
0.1558

Every format

HEX#b22ace
RGBrgb(178, 42, 206)
HSLhsl(290, 66%, 49%)
CMYKcmyk(14%, 80%, 0%, 19%)
LABlab(46.4 72.6 -56.2)
LCHlch(46.4 91.8 322.3)
OKLCHoklch(0.571 0.245 319.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b22ace on white: 5.10:1
AA ✓ pass · AA-large · AAA
Aa
#b22ace on black: 4.12:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.8%
Green16.5%
Blue80.8%

CMYK percentages

Cyan13.6%
Magenta79.6%
Yellow0.0%
Key (black)19.2%

Color previews

#b22ace text on a black background

contrast 4.12:1

Card sample

#b22ace text on a white background

contrast 5.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(178, 42, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(178, 42, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b22ace;
background: linear-gradient(135deg, #b22ace, #CE2A7C);

Monochromatic scale

Palettes built from #b22ace

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b22ace in the Color Lab