Skip to content

#9b27df

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

RGB
155, 39, 223
HSL
278°, 74%, 51%
CMYK
31, 83, 0, 13
Luminance
0.1375

Every format

HEX#9b27df
RGBrgb(155, 39, 223)
HSLhsl(278, 74%, 51%)
CMYKcmyk(31%, 83%, 0%, 13%)
LABlab(43.9 72.9 -70.2)
LCHlch(43.9 101.2 316.1)
OKLCHoklch(0.550 0.254 308.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b27df on white: 5.60:1
AA ✓ pass · AA-large · AAA
Aa
#9b27df on black: 3.75:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.8%
Green15.3%
Blue87.5%

CMYK percentages

Cyan30.5%
Magenta82.5%
Yellow0.0%
Key (black)12.5%

Color previews

#9b27df text on a black background

contrast 3.75:1

Card sample

#9b27df text on a white background

contrast 5.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b27df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9b27df in the Color Lab