Skip to content

#6c2eee

a balanced, electric violet · warm · closest name: blue

RGB
108, 46, 238
HSL
259°, 85%, 56%
CMYK
55, 81, 0, 7
Luminance
0.1132

Every format

HEX#6c2eee
RGBrgb(108, 46, 238)
HSLhsl(259, 85%, 56%)
CMYKcmyk(55%, 81%, 0%, 7%)
LABlab(40.1 67.9 -85.1)
LCHlch(40.1 108.9 308.6)
OKLCHoklch(0.515 0.258 288.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#6c2eee on white: 6.44:1
AA ✓ pass · AA-large · AAA
Aa
#6c2eee on black: 3.26:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red42.4%
Green18.0%
Blue93.3%

CMYK percentages

Cyan54.6%
Magenta80.7%
Yellow0.0%
Key (black)6.7%

Color previews

#6c2eee text on a black background

contrast 3.26:1

Card sample

#6c2eee text on a white background

contrast 6.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #6c2eee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #6c2eee in the Color Lab