Skip to content

#8b7fd2

a light, vivid blue · warm · closest name: slateblue

RGB
139, 127, 210
HSL
249°, 48%, 66%
CMYK
34, 40, 0, 18
Luminance
0.2532

Every format

HEX#8b7fd2
RGBrgb(139, 127, 210)
HSLhsl(249, 48%, 66%)
CMYKcmyk(34%, 40%, 0%, 18%)
LABlab(57.4 23.6 -41.3)
LCHlch(57.4 47.5 299.8)
OKLCHoklch(0.642 0.122 289.1)

Copy-ready code

/* CSS */
color: #8b7fd2;
background-color: #8b7fd2;
/* Tailwind (arbitrary) */
class="text-[#8b7fd2] bg-[#8b7fd2]"
/* SCSS */
$brand: #8b7fd2;
/* SwiftUI */
Color(red: 0.545, green: 0.498, blue: 0.824)
/* Android */
Color.parseColor("#8b7fd2")

Accessibility — WCAG contrast

Aa
#8b7fd2 on white: 3.46:1
AA ✗ fail · AA-large · AAA
Aa
#8b7fd2 on black: 6.06:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.5%
Green49.8%
Blue82.4%

CMYK percentages

Cyan33.8%
Magenta39.5%
Yellow0.0%
Key (black)17.6%

Color previews

#8b7fd2 text on a black background

contrast 6.06:1

Card sample

#8b7fd2 text on a white background

contrast 3.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(139, 127, 210, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(139, 127, 210, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8b7fd2;
background: linear-gradient(135deg, #8b7fd2, #C27FD2);

Monochromatic scale

Palettes built from #8b7fd2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8b7fd2 in the Color Lab