Skip to content

#a256eb

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

RGB
162, 86, 235
HSL
271°, 79%, 63%
CMYK
31, 63, 0, 8
Luminance
0.2034

Every format

HEX#a256eb
RGBrgb(162, 86, 235)
HSLhsl(271, 79%, 63%)
CMYKcmyk(31%, 63%, 0%, 8%)
LABlab(52.2 58.2 -63.4)
LCHlch(52.2 86.1 312.5)
OKLCHoklch(0.613 0.217 304.1)

Copy-ready code

/* CSS */
color: #a256eb;
background-color: #a256eb;
/* Tailwind (arbitrary) */
class="text-[#a256eb] bg-[#a256eb]"
/* SCSS */
$brand: #a256eb;
/* SwiftUI */
Color(red: 0.635, green: 0.337, blue: 0.922)
/* Android */
Color.parseColor("#a256eb")

Accessibility — WCAG contrast

Aa
#a256eb on white: 4.14:1
AA ✗ fail · AA-large · AAA
Aa
#a256eb on black: 5.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red63.5%
Green33.7%
Blue92.2%

CMYK percentages

Cyan31.1%
Magenta63.4%
Yellow0.0%
Key (black)7.8%

Color previews

#a256eb text on a black background

contrast 5.07:1

Card sample

#a256eb text on a white background

contrast 4.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(162, 86, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(162, 86, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a256eb;
background: linear-gradient(135deg, #a256eb, #EB56D1);

Monochromatic scale

Palettes built from #a256eb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a256eb in the Color Lab