Skip to content

#b40df0

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

RGB
180, 13, 240
HSL
284°, 90%, 50%
CMYK
25, 95, 0, 6
Luminance
0.1628

Every format

HEX#b40df0
RGBrgb(180, 13, 240)
HSLhsl(284, 90%, 50%)
CMYKcmyk(25%, 95%, 0%, 6%)
LABlab(47.3 84.3 -74.0)
LCHlch(47.3 112.2 318.7)
OKLCHoklch(0.585 0.287 312.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b40df0 on white: 4.93:1
AA ✓ pass · AA-large · AAA
Aa
#b40df0 on black: 4.26:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red70.6%
Green5.1%
Blue94.1%

CMYK percentages

Cyan25.0%
Magenta94.6%
Yellow0.0%
Key (black)5.9%

Color previews

#b40df0 text on a black background

contrast 4.26:1

Card sample

#b40df0 text on a white background

contrast 4.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b40df0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b40df0 in the Color Lab