Skip to content

#9b45ff

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

RGB
155, 69, 255
HSL
268°, 100%, 64%
CMYK
39, 73, 0, 0
Luminance
0.1844

Every format

HEX#9b45ff
RGBrgb(155, 69, 255)
HSLhsl(268, 100%, 64%)
CMYKcmyk(39%, 73%, 0%, 0%)
LABlab(50.0 69.2 -78.2)
LCHlch(50.0 104.4 311.5)
OKLCHoklch(0.600 0.257 299.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b45ff on white: 4.48:1
AA ✗ fail · AA-large · AAA
Aa
#9b45ff on black: 4.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.8%
Green27.1%
Blue100.0%

CMYK percentages

Cyan39.2%
Magenta72.9%
Yellow0.0%
Key (black)0.0%

Color previews

#9b45ff text on a black background

contrast 4.69:1

Card sample

#9b45ff text on a white background

contrast 4.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b45ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9b45ff in the Color Lab