Skip to content

#6d2fab

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

RGB
109, 47, 171
HSL
270°, 57%, 43%
CMYK
36, 73, 0, 33
Luminance
0.0822

Every format

HEX#6d2fab
RGBrgb(109, 47, 171)
HSLhsl(270, 57%, 43%)
CMYKcmyk(36%, 73%, 0%, 33%)
LABlab(34.5 50.8 -55.5)
LCHlch(34.5 75.2 312.5)
OKLCHoklch(0.458 0.187 302.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#6d2fab on white: 7.94:1
AA ✓ pass · AA-large · AAA
Aa
#6d2fab on black: 2.64:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red42.7%
Green18.4%
Blue67.1%

CMYK percentages

Cyan36.3%
Magenta72.5%
Yellow0.0%
Key (black)32.9%

Color previews

#6d2fab text on a black background

contrast 2.64:1

Card sample

#6d2fab text on a white background

contrast 7.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #6d2fab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #6d2fab in the Color Lab