Skip to content

#9f3fec

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

RGB
159, 63, 236
HSL
273°, 82%, 59%
CMYK
33, 73, 0, 8
Luminance
0.1698

Every format

HEX#9f3fec
RGBrgb(159, 63, 236)
HSLhsl(273, 82%, 59%)
CMYKcmyk(33%, 73%, 0%, 8%)
LABlab(48.2 68.1 -70.5)
LCHlch(48.2 98.0 314.0)
OKLCHoklch(0.584 0.245 305.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red62.4%
Green24.7%
Blue92.5%

CMYK percentages

Cyan32.6%
Magenta73.3%
Yellow0.0%
Key (black)7.5%

Color previews

#9f3fec text on a black background

contrast 4.40:1

Card sample

#9f3fec text on a white background

contrast 4.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9f3fec

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9f3fec in the Color Lab