Skip to content

#ba60eb

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

RGB
186, 96, 235
HSL
279°, 78%, 65%
CMYK
21, 59, 0, 8
Luminance
0.2480

Every format

HEX#ba60eb
RGBrgb(186, 96, 235)
HSLhsl(279, 78%, 65%)
CMYKcmyk(21%, 59%, 0%, 8%)
LABlab(56.9 58.7 -55.8)
LCHlch(56.9 81.0 316.5)
OKLCHoklch(0.653 0.210 311.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba60eb on white: 3.52:1
AA ✗ fail · AA-large · AAA
Aa
#ba60eb on black: 5.96:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green37.6%
Blue92.2%

CMYK percentages

Cyan20.9%
Magenta59.1%
Yellow0.0%
Key (black)7.8%

Color previews

#ba60eb text on a black background

contrast 5.96:1

Card sample

#ba60eb text on a white background

contrast 3.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba60eb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba60eb in the Color Lab