Skip to content

#ba4ffd

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

RGB
186, 79, 253
HSL
277°, 98%, 65%
CMYK
27, 69, 0, 1
Luminance
0.2312

Every format

HEX#ba4ffd
RGBrgb(186, 79, 253)
HSLhsl(277, 98%, 65%)
CMYKcmyk(27%, 69%, 0%, 1%)
LABlab(55.2 70.2 -68.5)
LCHlch(55.2 98.1 315.7)
OKLCHoklch(0.645 0.250 309.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba4ffd on white: 3.73:1
AA ✗ fail · AA-large · AAA
Aa
#ba4ffd on black: 5.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green31.0%
Blue99.2%

CMYK percentages

Cyan26.5%
Magenta68.8%
Yellow0.0%
Key (black)0.8%

Color previews

#ba4ffd text on a black background

contrast 5.62:1

Card sample

#ba4ffd text on a white background

contrast 3.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 79, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 79, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba4ffd;
background: linear-gradient(135deg, #ba4ffd, #FD4FCC);

Monochromatic scale

Palettes built from #ba4ffd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba4ffd in the Color Lab