Skip to content

#9c0dfd

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

RGB
156, 13, 253
HSL
276°, 98%, 52%
CMYK
38, 95, 0, 1
Luminance
0.1445

Every format

HEX#9c0dfd
RGBrgb(156, 13, 253)
HSLhsl(276, 98%, 52%)
CMYKcmyk(38%, 95%, 0%, 1%)
LABlab(44.9 83.9 -85.5)
LCHlch(44.9 119.8 314.5)
OKLCHoklch(0.564 0.292 303.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9c0dfd on white: 5.40:1
AA ✓ pass · AA-large · AAA
Aa
#9c0dfd on black: 3.89:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red61.2%
Green5.1%
Blue99.2%

CMYK percentages

Cyan38.3%
Magenta94.9%
Yellow0.0%
Key (black)0.8%

Color previews

#9c0dfd text on a black background

contrast 3.89:1

Card sample

#9c0dfd text on a white background

contrast 5.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9c0dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9c0dfd in the Color Lab