Skip to content

#8a6dbb

a balanced, soft violet · warm · closest name: slateblue

RGB
138, 109, 187
HSL
262°, 36%, 58%
CMYK
26, 42, 0, 27
Luminance
0.1993

Every format

HEX#8a6dbb
RGBrgb(138, 109, 187)
HSLhsl(262, 36%, 58%)
CMYKcmyk(26%, 42%, 0%, 27%)
LABlab(51.8 27.9 -37.0)
LCHlch(51.8 46.4 307.1)
OKLCHoklch(0.595 0.119 299.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8a6dbb on white: 4.21:1
AA ✗ fail · AA-large · AAA
Aa
#8a6dbb on black: 4.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.1%
Green42.7%
Blue73.3%

CMYK percentages

Cyan26.2%
Magenta41.7%
Yellow0.0%
Key (black)26.7%

Color previews

#8a6dbb text on a black background

contrast 4.99:1

Card sample

#8a6dbb text on a white background

contrast 4.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(138, 109, 187, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(138, 109, 187, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8a6dbb;
background: linear-gradient(135deg, #8a6dbb, #BB6DB8);

Monochromatic scale

Palettes built from #8a6dbb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8a6dbb in the Color Lab