Skip to content

#9f33ff

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

RGB
159, 51, 255
HSL
272°, 100%, 60%
CMYK
38, 80, 0, 0
Luminance
0.1696

Every format

HEX#9f33ff
RGBrgb(159, 51, 255)
HSLhsl(272, 100%, 60%)
CMYKcmyk(38%, 80%, 0%, 0%)
LABlab(48.2 76.5 -81.1)
LCHlch(48.2 111.5 313.3)
OKLCHoklch(0.589 0.274 302.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9f33ff on white: 4.78:1
AA ✓ pass · AA-large · AAA
Aa
#9f33ff on black: 4.39:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.4%
Green20.0%
Blue100.0%

CMYK percentages

Cyan37.6%
Magenta80.0%
Yellow0.0%
Key (black)0.0%

Color previews

#9f33ff text on a black background

contrast 4.39:1

Card sample

#9f33ff text on a white background

contrast 4.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9f33ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9f33ff in the Color Lab