Skip to content

#9e5abc

a balanced, soft violet · warm · closest name: orchid

RGB
158, 90, 188
HSL
282°, 42%, 55%
CMYK
16, 52, 0, 26
Luminance
0.1821

Every format

HEX#9e5abc
RGBrgb(158, 90, 188)
HSLhsl(282, 42%, 55%)
CMYKcmyk(16%, 52%, 0%, 26%)
LABlab(49.8 44.6 -40.6)
LCHlch(49.8 60.3 317.7)
OKLCHoklch(0.586 0.159 314.5)

Copy-ready code

/* CSS */
color: #9e5abc;
background-color: #9e5abc;
/* Tailwind (arbitrary) */
class="text-[#9e5abc] bg-[#9e5abc]"
/* SCSS */
$brand: #9e5abc;
/* SwiftUI */
Color(red: 0.620, green: 0.353, blue: 0.737)
/* Android */
Color.parseColor("#9e5abc")

Accessibility — WCAG contrast

Aa
#9e5abc on white: 4.52:1
AA ✓ pass · AA-large · AAA
Aa
#9e5abc on black: 4.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.0%
Green35.3%
Blue73.7%

CMYK percentages

Cyan16.0%
Magenta52.1%
Yellow0.0%
Key (black)26.3%

Color previews

#9e5abc text on a black background

contrast 4.64:1

Card sample

#9e5abc text on a white background

contrast 4.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #9e5abc;
Background color
Panel with #9e5abc background
background-color: #9e5abc;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #9e5abc;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(158, 90, 188, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(158, 90, 188, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9e5abc;
background: linear-gradient(135deg, #9e5abc, #BC5A99);

Monochromatic scale

Palettes built from #9e5abc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9e5abc in the Color Lab