Skip to content

#b40cfc

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

RGB
180, 12, 252
HSL
282°, 98%, 52%
CMYK
29, 95, 0, 1
Luminance
0.1699

Every format

HEX#b40cfc
RGBrgb(180, 12, 252)
HSLhsl(282, 98%, 52%)
CMYKcmyk(29%, 95%, 0%, 1%)
LABlab(48.3 86.5 -79.3)
LCHlch(48.3 117.4 317.5)
OKLCHoklch(0.594 0.296 310.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b40cfc on white: 4.77:1
AA ✓ pass · AA-large · AAA
Aa
#b40cfc on black: 4.40:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red70.6%
Green4.7%
Blue98.8%

CMYK percentages

Cyan28.6%
Magenta95.2%
Yellow0.0%
Key (black)1.2%

Color previews

#b40cfc text on a black background

contrast 4.40:1

Card sample

#b40cfc text on a white background

contrast 4.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b40cfc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b40cfc in the Color Lab