Skip to content

#6e2eee

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

RGB
110, 46, 238
HSL
260°, 85%, 56%
CMYK
54, 81, 0, 7
Luminance
0.1144

Every format

HEX#6e2eee
RGBrgb(110, 46, 238)
HSLhsl(260, 85%, 56%)
CMYKcmyk(54%, 81%, 0%, 7%)
LABlab(40.3 68.1 -84.8)
LCHlch(40.3 108.7 308.8)
OKLCHoklch(0.517 0.258 288.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#6e2eee on white: 6.39:1
AA ✓ pass · AA-large · AAA
Aa
#6e2eee on black: 3.29:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red43.1%
Green18.0%
Blue93.3%

CMYK percentages

Cyan53.8%
Magenta80.7%
Yellow0.0%
Key (black)6.7%

Color previews

#6e2eee text on a black background

contrast 3.29:1

Card sample

#6e2eee text on a white background

contrast 6.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #6e2eee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #6e2eee in the Color Lab