Skip to content

#9a2dfd

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

RGB
154, 45, 253
HSL
271°, 98%, 58%
CMYK
39, 82, 0, 1
Luminance
0.1584

Every format

HEX#9a2dfd
RGBrgb(154, 45, 253)
HSLhsl(271, 98%, 58%)
CMYKcmyk(39%, 82%, 0%, 1%)
LABlab(46.8 77.3 -82.4)
LCHlch(46.8 113.0 313.2)
OKLCHoklch(0.577 0.276 301.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9a2dfd on white: 5.04:1
AA ✓ pass · AA-large · AAA
Aa
#9a2dfd on black: 4.17:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.4%
Green17.6%
Blue99.2%

CMYK percentages

Cyan39.1%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#9a2dfd text on a black background

contrast 4.17:1

Card sample

#9a2dfd text on a white background

contrast 5.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9a2dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9a2dfd in the Color Lab