Skip to content

#ba75ff

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

RGB
186, 117, 255
HSL
270°, 100%, 73%
CMYK
27, 54, 0, 0
Luminance
0.3038

Every format

HEX#ba75ff
RGBrgb(186, 117, 255)
HSLhsl(270, 100%, 73%)
CMYKcmyk(27%, 54%, 0%, 0%)
LABlab(62.0 52.6 -58.7)
LCHlch(62.0 78.8 311.8)
OKLCHoklch(0.694 0.201 304.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba75ff on white: 2.97:1
AA ✗ fail · AA-large · AAA
Aa
#ba75ff on black: 7.08:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green45.9%
Blue100.0%

CMYK percentages

Cyan27.1%
Magenta54.1%
Yellow0.0%
Key (black)0.0%

Color previews

#ba75ff text on a black background

contrast 7.08:1

Card sample

#ba75ff text on a white background

contrast 2.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba75ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba75ff in the Color Lab