Skip to content

#bf2aff

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

RGB
191, 42, 255
HSL
282°, 100%, 58%
CMYK
25, 84, 0, 0
Luminance
0.1995

Every format

HEX#bf2aff
RGBrgb(191, 42, 255)
HSLhsl(282, 100%, 58%)
CMYKcmyk(25%, 84%, 0%, 0%)
LABlab(51.8 83.6 -75.1)
LCHlch(51.8 112.4 318.1)
OKLCHoklch(0.623 0.287 312.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bf2aff on white: 4.21:1
AA ✗ fail · AA-large · AAA
Aa
#bf2aff on black: 4.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red74.9%
Green16.5%
Blue100.0%

CMYK percentages

Cyan25.1%
Magenta83.5%
Yellow0.0%
Key (black)0.0%

Color previews

#bf2aff text on a black background

contrast 4.99:1

Card sample

#bf2aff text on a white background

contrast 4.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(191, 42, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(191, 42, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bf2aff;
background: linear-gradient(135deg, #bf2aff, #FF2AB1);

Monochromatic scale

Palettes built from #bf2aff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bf2aff in the Color Lab