Skip to content

#ba7ace

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

RGB
186, 122, 206
HSL
286°, 46%, 64%
CMYK
10, 41, 0, 19
Luminance
0.2881

Every format

HEX#ba7ace
RGBrgb(186, 122, 206)
HSLhsl(286, 46%, 64%)
CMYKcmyk(10%, 41%, 0%, 19%)
LABlab(60.6 39.2 -33.6)
LCHlch(60.6 51.6 319.4)
OKLCHoklch(0.676 0.138 317.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba7ace on white: 3.11:1
AA ✗ fail · AA-large · AAA
Aa
#ba7ace on black: 6.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green47.8%
Blue80.8%

CMYK percentages

Cyan9.7%
Magenta40.8%
Yellow0.0%
Key (black)19.2%

Color previews

#ba7ace text on a black background

contrast 6.76:1

Card sample

#ba7ace text on a white background

contrast 3.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba7ace

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba7ace in the Color Lab