Skip to content

#ba65ff

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

RGB
186, 101, 255
HSL
273°, 100%, 70%
CMYK
27, 60, 0, 0
Luminance
0.2697

Every format

HEX#ba65ff
RGBrgb(186, 101, 255)
HSLhsl(273, 100%, 70%)
CMYKcmyk(27%, 60%, 0%, 0%)
LABlab(58.9 60.6 -63.6)
LCHlch(58.9 87.9 313.6)
OKLCHoklch(0.672 0.224 306.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba65ff on white: 3.28:1
AA ✗ fail · AA-large · AAA
Aa
#ba65ff on black: 6.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green39.6%
Blue100.0%

CMYK percentages

Cyan27.1%
Magenta60.4%
Yellow0.0%
Key (black)0.0%

Color previews

#ba65ff text on a black background

contrast 6.39:1

Card sample

#ba65ff text on a white background

contrast 3.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba65ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba65ff in the Color Lab