Skip to content

#5e2eee

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

RGB
94, 46, 238
HSL
255°, 85%, 56%
CMYK
61, 81, 0, 7
Luminance
0.1051

Every format

HEX#5e2eee
RGBrgb(94, 46, 238)
HSLhsl(255, 85%, 56%)
CMYKcmyk(61%, 81%, 0%, 7%)
LABlab(38.7 66.5 -87.4)
LCHlch(38.7 109.8 307.2)
OKLCHoklch(0.502 0.259 283.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5e2eee on white: 6.77:1
AA ✓ pass · AA-large · AAA
Aa
#5e2eee on black: 3.10:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red36.9%
Green18.0%
Blue93.3%

CMYK percentages

Cyan60.5%
Magenta80.7%
Yellow0.0%
Key (black)6.7%

Color previews

#5e2eee text on a black background

contrast 3.10:1

Card sample

#5e2eee text on a white background

contrast 6.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5e2eee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #5e2eee in the Color Lab