Skip to content

#6d2fba

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

RGB
109, 47, 186
HSL
267°, 60%, 46%
CMYK
41, 75, 0, 27
Luminance
0.0883

Every format

HEX#6d2fba
RGBrgb(109, 47, 186)
HSLhsl(267, 60%, 46%)
CMYKcmyk(41%, 75%, 0%, 27%)
LABlab(35.6 54.5 -62.4)
LCHlch(35.6 82.8 311.1)
OKLCHoklch(0.470 0.203 298.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#6d2fba on white: 7.59:1
AA ✓ pass · AA-large · AAA
Aa
#6d2fba on black: 2.77:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red42.7%
Green18.4%
Blue72.9%

CMYK percentages

Cyan41.4%
Magenta74.7%
Yellow0.0%
Key (black)27.1%

Color previews

#6d2fba text on a black background

contrast 2.77:1

Card sample

#6d2fba text on a white background

contrast 7.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #6d2fba

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #6d2fba in the Color Lab