Skip to content

#9b2ceb

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

RGB
155, 44, 235
HSL
275°, 83%, 55%
CMYK
34, 81, 0, 8
Luminance
0.1477

Every format

HEX#9b2ceb
RGBrgb(155, 44, 235)
HSLhsl(275, 83%, 55%)
CMYKcmyk(34%, 81%, 0%, 8%)
LABlab(45.3 73.9 -74.7)
LCHlch(45.3 105.1 314.7)
OKLCHoklch(0.563 0.261 305.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b2ceb on white: 5.31:1
AA ✓ pass · AA-large · AAA
Aa
#9b2ceb on black: 3.95:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.8%
Green17.3%
Blue92.2%

CMYK percentages

Cyan34.0%
Magenta81.3%
Yellow0.0%
Key (black)7.8%

Color previews

#9b2ceb text on a black background

contrast 3.95:1

Card sample

#9b2ceb text on a white background

contrast 5.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(155, 44, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(155, 44, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9b2ceb;
background: linear-gradient(135deg, #9b2ceb, #EB2CBC);

Monochromatic scale

Palettes built from #9b2ceb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9b2ceb in the Color Lab