Skip to content

#b112dc

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

RGB
177, 18, 220
HSL
287°, 85%, 47%
CMYK
20, 92, 0, 14
Luminance
0.1495

Every format

HEX#b112dc
RGBrgb(177, 18, 220)
HSLhsl(287, 85%, 47%)
CMYKcmyk(20%, 92%, 0%, 14%)
LABlab(45.6 79.8 -65.6)
LCHlch(45.6 103.3 320.6)
OKLCHoklch(0.567 0.270 316.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b112dc on white: 5.26:1
AA ✓ pass · AA-large · AAA
Aa
#b112dc on black: 3.99:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.4%
Green7.1%
Blue86.3%

CMYK percentages

Cyan19.5%
Magenta91.8%
Yellow0.0%
Key (black)13.7%

Color previews

#b112dc text on a black background

contrast 3.99:1

Card sample

#b112dc text on a white background

contrast 5.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b112dc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b112dc in the Color Lab