Skip to content

#6c22aa

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

RGB
108, 34, 170
HSL
273°, 67%, 40%
CMYK
37, 80, 0, 33
Luminance
0.0723

Every format

HEX#6c22aa
RGBrgb(108, 34, 170)
HSLhsl(273, 67%, 40%)
CMYKcmyk(37%, 80%, 0%, 33%)
LABlab(32.3 55.8 -58.3)
LCHlch(32.3 80.7 313.7)
OKLCHoklch(0.442 0.200 303.5)

Copy-ready code

/* CSS */
color: #6c22aa;
background-color: #6c22aa;
/* Tailwind (arbitrary) */
class="text-[#6c22aa] bg-[#6c22aa]"
/* SCSS */
$brand: #6c22aa;
/* SwiftUI */
Color(red: 0.424, green: 0.133, blue: 0.667)
/* Android */
Color.parseColor("#6c22aa")

Accessibility — WCAG contrast

Aa
#6c22aa on white: 8.58:1
AA ✓ pass · AA-large · AAA
Aa
#6c22aa on black: 2.45:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red42.4%
Green13.3%
Blue66.7%

CMYK percentages

Cyan36.5%
Magenta80.0%
Yellow0.0%
Key (black)33.3%

Color previews

#6c22aa text on a black background

contrast 2.45:1

Card sample

#6c22aa text on a white background

contrast 8.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(108, 34, 170, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(108, 34, 170, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6c22aa;
background: linear-gradient(135deg, #6c22aa, #AA228D);

Monochromatic scale

Palettes built from #6c22aa

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #6c22aa in the Color Lab