Skip to content

#b20df3

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

RGB
178, 13, 243
HSL
283°, 91%, 50%
CMYK
27, 95, 0, 5
Luminance
0.1622

Every format

HEX#b20df3
RGBrgb(178, 13, 243)
HSLhsl(283, 91%, 50%)
CMYKcmyk(27%, 95%, 0%, 5%)
LABlab(47.3 84.6 -75.8)
LCHlch(47.3 113.6 318.1)
OKLCHoklch(0.585 0.288 311.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b20df3 on white: 4.95:1
AA ✓ pass · AA-large · AAA
Aa
#b20df3 on black: 4.24:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.8%
Green5.1%
Blue95.3%

CMYK percentages

Cyan26.7%
Magenta94.7%
Yellow0.0%
Key (black)4.7%

Color previews

#b20df3 text on a black background

contrast 4.24:1

Card sample

#b20df3 text on a white background

contrast 4.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b20df3

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b20df3 in the Color Lab