Skip to content

#9c27df

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

RGB
156, 39, 223
HSL
278°, 74%, 51%
CMYK
30, 83, 0, 13
Luminance
0.1385

Every format

HEX#9c27df
RGBrgb(156, 39, 223)
HSLhsl(278, 74%, 51%)
CMYKcmyk(30%, 83%, 0%, 13%)
LABlab(44.0 73.0 -70.0)
LCHlch(44.0 101.1 316.2)
OKLCHoklch(0.551 0.254 308.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9c27df on white: 5.57:1
AA ✓ pass · AA-large · AAA
Aa
#9c27df on black: 3.77:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red61.2%
Green15.3%
Blue87.5%

CMYK percentages

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

Color previews

#9c27df text on a black background

contrast 3.77:1

Card sample

#9c27df text on a white background

contrast 5.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9c27df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9c27df in the Color Lab