Skip to content

#ba4fda

a balanced, vivid violet · warm · closest name: orchid

RGB
186, 79, 218
HSL
286°, 65%, 58%
CMYK
15, 64, 0, 15
Luminance
0.2109

Every format

HEX#ba4fda
RGBrgb(186, 79, 218)
HSLhsl(286, 65%, 58%)
CMYKcmyk(15%, 64%, 0%, 15%)
LABlab(53.0 63.1 -52.3)
LCHlch(53.0 82.0 320.3)
OKLCHoklch(0.623 0.217 317.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba4fda on white: 4.02:1
AA ✗ fail · AA-large · AAA
Aa
#ba4fda on black: 5.22:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green31.0%
Blue85.5%

CMYK percentages

Cyan14.7%
Magenta63.8%
Yellow0.0%
Key (black)14.5%

Color previews

#ba4fda text on a black background

contrast 5.22:1

Card sample

#ba4fda text on a white background

contrast 4.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba4fda

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba4fda in the Color Lab