Skip to content

#8c7abc

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

RGB
140, 122, 188
HSL
256°, 33%, 61%
CMYK
26, 35, 0, 26
Luminance
0.2313

Every format

HEX#8c7abc
RGBrgb(140, 122, 188)
HSLhsl(256, 33%, 61%)
CMYKcmyk(26%, 35%, 0%, 26%)
LABlab(55.2 21.2 -32.2)
LCHlch(55.2 38.5 303.3)
OKLCHoklch(0.622 0.099 295.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8c7abc on white: 3.73:1
AA ✗ fail · AA-large · AAA
Aa
#8c7abc on black: 5.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.9%
Green47.8%
Blue73.7%

CMYK percentages

Cyan25.5%
Magenta35.1%
Yellow0.0%
Key (black)26.3%

Color previews

#8c7abc text on a black background

contrast 5.63:1

Card sample

#8c7abc text on a white background

contrast 3.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8c7abc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8c7abc in the Color Lab