Skip to content

#8a2cdf

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

RGB
138, 44, 223
HSL
272°, 74%, 52%
CMYK
38, 80, 0, 13
Luminance
0.1253

Every format

HEX#8a2cdf
RGBrgb(138, 44, 223)
HSLhsl(272, 74%, 52%)
CMYKcmyk(38%, 80%, 0%, 13%)
LABlab(42.0 68.8 -73.3)
LCHlch(42.0 100.5 313.2)
OKLCHoklch(0.532 0.247 301.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8a2cdf on white: 5.99:1
AA ✓ pass · AA-large · AAA
Aa
#8a2cdf on black: 3.51:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.1%
Green17.3%
Blue87.5%

CMYK percentages

Cyan38.1%
Magenta80.3%
Yellow0.0%
Key (black)12.5%

Color previews

#8a2cdf text on a black background

contrast 3.51:1

Card sample

#8a2cdf text on a white background

contrast 5.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8a2cdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8a2cdf in the Color Lab