Skip to content

#b17df2

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

RGB
177, 125, 242
HSL
267°, 82%, 72%
CMYK
27, 48, 0, 5
Luminance
0.3043

Every format

HEX#b17df2
RGBrgb(177, 125, 242)
HSLhsl(267, 82%, 72%)
CMYKcmyk(27%, 48%, 0%, 5%)
LABlab(62.0 43.0 -51.5)
LCHlch(62.0 67.1 309.8)
OKLCHoklch(0.690 0.172 302.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b17df2 on white: 2.96:1
AA ✗ fail · AA-large · AAA
Aa
#b17df2 on black: 7.09:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.4%
Green49.0%
Blue94.9%

CMYK percentages

Cyan26.9%
Magenta48.3%
Yellow0.0%
Key (black)5.1%

Color previews

#b17df2 text on a black background

contrast 7.09:1

Card sample

#b17df2 text on a white background

contrast 2.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(177, 125, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(177, 125, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b17df2;
background: linear-gradient(135deg, #b17df2, #F27DE5);

Monochromatic scale

Palettes built from #b17df2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b17df2 in the Color Lab