Skip to content

#ba7fda

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

RGB
186, 127, 218
HSL
279°, 55%, 68%
CMYK
15, 42, 0, 15
Luminance
0.3068

Every format

HEX#ba7fda
RGBrgb(186, 127, 218)
HSLhsl(279, 55%, 68%)
CMYKcmyk(15%, 42%, 0%, 15%)
LABlab(62.2 39.0 -37.8)
LCHlch(62.2 54.3 315.9)
OKLCHoklch(0.690 0.143 312.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba7fda on white: 2.94:1
AA ✗ fail · AA-large · AAA
Aa
#ba7fda on black: 7.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green49.8%
Blue85.5%

CMYK percentages

Cyan14.7%
Magenta41.7%
Yellow0.0%
Key (black)14.5%

Color previews

#ba7fda text on a black background

contrast 7.14:1

Card sample

#ba7fda text on a white background

contrast 2.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba7fda

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba7fda in the Color Lab