Skip to content

#6a2dbf

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

RGB
106, 45, 191
HSL
265°, 62%, 46%
CMYK
45, 76, 0, 25
Luminance
0.0870

Every format

HEX#6a2dbf
RGBrgb(106, 45, 191)
HSLhsl(265, 62%, 46%)
CMYKcmyk(45%, 76%, 0%, 25%)
LABlab(35.4 56.1 -65.8)
LCHlch(35.4 86.5 310.5)
OKLCHoklch(0.469 0.210 296.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#6a2dbf on white: 7.66:1
AA ✓ pass · AA-large · AAA
Aa
#6a2dbf on black: 2.74:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red41.6%
Green17.6%
Blue74.9%

CMYK percentages

Cyan44.5%
Magenta76.4%
Yellow0.0%
Key (black)25.1%

Color previews

#6a2dbf text on a black background

contrast 2.74:1

Card sample

#6a2dbf text on a white background

contrast 7.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(106, 45, 191, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(106, 45, 191, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6a2dbf;
background: linear-gradient(135deg, #6a2dbf, #BF2DB3);

Monochromatic scale

Palettes built from #6a2dbf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #6a2dbf in the Color Lab