Skip to content

#a27fdc

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

RGB
162, 127, 220
HSL
263°, 57%, 68%
CMYK
26, 42, 0, 14
Luminance
0.2803

Every format

HEX#a27fdc
RGBrgb(162, 127, 220)
HSLhsl(263, 57%, 68%)
CMYKcmyk(26%, 42%, 0%, 14%)
LABlab(59.9 32.5 -42.7)
LCHlch(59.9 53.7 307.3)
OKLCHoklch(0.667 0.138 300.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a27fdc on white: 3.18:1
AA ✗ fail · AA-large · AAA
Aa
#a27fdc on black: 6.61:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red63.5%
Green49.8%
Blue86.3%

CMYK percentages

Cyan26.4%
Magenta42.3%
Yellow0.0%
Key (black)13.7%

Color previews

#a27fdc text on a black background

contrast 6.61:1

Card sample

#a27fdc text on a white background

contrast 3.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a27fdc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a27fdc in the Color Lab