Skip to content

#6e2fad

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

RGB
110, 47, 173
HSL
270°, 57%, 43%
CMYK
36, 73, 0, 32
Luminance
0.0837

Every format

HEX#6e2fad
RGBrgb(110, 47, 173)
HSLhsl(270, 57%, 43%)
CMYKcmyk(36%, 73%, 0%, 32%)
LABlab(34.7 51.5 -56.2)
LCHlch(34.7 76.2 312.5)
OKLCHoklch(0.460 0.189 302.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#6e2fad on white: 7.86:1
AA ✓ pass · AA-large · AAA
Aa
#6e2fad on black: 2.67:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red43.1%
Green18.4%
Blue67.8%

CMYK percentages

Cyan36.4%
Magenta72.8%
Yellow0.0%
Key (black)32.2%

Color previews

#6e2fad text on a black background

contrast 2.67:1

Card sample

#6e2fad text on a white background

contrast 7.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(110, 47, 173, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(110, 47, 173, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6e2fad;
background: linear-gradient(135deg, #6e2fad, #AD2F98);

Monochromatic scale

Palettes built from #6e2fad

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #6e2fad in the Color Lab