Skip to content

#b97aff

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

RGB
185, 122, 255
HSL
268°, 100%, 74%
CMYK
28, 52, 0, 0
Luminance
0.3145

Every format

HEX#b97aff
RGBrgb(185, 122, 255)
HSLhsl(268, 100%, 74%)
CMYKcmyk(28%, 52%, 0%, 0%)
LABlab(62.9 49.7 -57.3)
LCHlch(62.9 75.8 310.9)
OKLCHoklch(0.701 0.194 303.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b97aff on white: 2.88:1
AA ✗ fail · AA-large · AAA
Aa
#b97aff on black: 7.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.5%
Green47.8%
Blue100.0%

CMYK percentages

Cyan27.5%
Magenta52.2%
Yellow0.0%
Key (black)0.0%

Color previews

#b97aff text on a black background

contrast 7.29:1

Card sample

#b97aff text on a white background

contrast 2.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b97aff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b97aff in the Color Lab