Skip to content

#8f3ace

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

RGB
143, 58, 206
HSL
275°, 60%, 52%
CMYK
31, 72, 0, 19
Luminance
0.1332

Every format

HEX#8f3ace
RGBrgb(143, 58, 206)
HSLhsl(275, 60%, 52%)
CMYKcmyk(31%, 72%, 0%, 19%)
LABlab(43.2 60.6 -61.5)
LCHlch(43.2 86.3 314.5)
OKLCHoklch(0.538 0.218 306.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8f3ace on white: 5.73:1
AA ✓ pass · AA-large · AAA
Aa
#8f3ace on black: 3.66:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red56.1%
Green22.7%
Blue80.8%

CMYK percentages

Cyan30.6%
Magenta71.8%
Yellow0.0%
Key (black)19.2%

Color previews

#8f3ace text on a black background

contrast 3.66:1

Card sample

#8f3ace text on a white background

contrast 5.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(143, 58, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(143, 58, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8f3ace;
background: linear-gradient(135deg, #8f3ace, #CE3AAA);

Monochromatic scale

Palettes built from #8f3ace

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8f3ace in the Color Lab