Skip to content

#b40df9

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

RGB
180, 13, 249
HSL
283°, 95%, 51%
CMYK
28, 95, 0, 2
Luminance
0.1683

Every format

HEX#b40df9
RGBrgb(180, 13, 249)
HSLhsl(283, 95%, 51%)
CMYKcmyk(28%, 95%, 0%, 2%)
LABlab(48.0 85.9 -77.9)
LCHlch(48.0 116.0 317.8)
OKLCHoklch(0.592 0.293 311.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b40df9 on white: 4.81:1
AA ✓ pass · AA-large · AAA
Aa
#b40df9 on black: 4.37:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red70.6%
Green5.1%
Blue97.6%

CMYK percentages

Cyan27.7%
Magenta94.8%
Yellow0.0%
Key (black)2.4%

Color previews

#b40df9 text on a black background

contrast 4.37:1

Card sample

#b40df9 text on a white background

contrast 4.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b40df9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b40df9 in the Color Lab