Skip to content

#8a2cfd

a balanced, electric violet · warm · closest name: blue

RGB
138, 44, 253
HSL
267°, 98%, 58%
CMYK
46, 83, 0, 1
Luminance
0.1430

Every format

HEX#8a2cfd
RGBrgb(138, 44, 253)
HSLhsl(267, 98%, 58%)
CMYKcmyk(46%, 83%, 0%, 1%)
LABlab(44.6 75.6 -86.0)
LCHlch(44.6 114.5 311.3)
OKLCHoklch(0.558 0.275 296.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8a2cfd on white: 5.44:1
AA ✓ pass · AA-large · AAA
Aa
#8a2cfd on black: 3.86:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.1%
Green17.3%
Blue99.2%

CMYK percentages

Cyan45.5%
Magenta82.6%
Yellow0.0%
Key (black)0.8%

Color previews

#8a2cfd text on a black background

contrast 3.86:1

Card sample

#8a2cfd text on a white background

contrast 5.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8a2cfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8a2cfd in the Color Lab