Skip to content

#8a30ec

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

RGB
138, 48, 236
HSL
269°, 83%, 56%
CMYK
42, 80, 0, 8
Luminance
0.1357

Every format

HEX#8a30ec
RGBrgb(138, 48, 236)
HSLhsl(269, 83%, 56%)
CMYKcmyk(42%, 80%, 0%, 8%)
LABlab(43.6 70.4 -78.1)
LCHlch(43.6 105.2 312.0)
OKLCHoklch(0.546 0.256 299.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8a30ec on white: 5.65:1
AA ✓ pass · AA-large · AAA
Aa
#8a30ec on black: 3.71:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.1%
Green18.8%
Blue92.5%

CMYK percentages

Cyan41.5%
Magenta79.7%
Yellow0.0%
Key (black)7.5%

Color previews

#8a30ec text on a black background

contrast 3.71:1

Card sample

#8a30ec text on a white background

contrast 5.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8a30ec

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8a30ec in the Color Lab