Skip to content

#9f0dfb

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

RGB
159, 13, 251
HSL
277°, 97%, 52%
CMYK
37, 95, 0, 2
Luminance
0.1462

Every format

HEX#9f0dfb
RGBrgb(159, 13, 251)
HSLhsl(277, 97%, 52%)
CMYKcmyk(37%, 95%, 0%, 2%)
LABlab(45.1 83.9 -84.0)
LCHlch(45.1 118.7 315.0)
OKLCHoklch(0.566 0.290 304.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9f0dfb on white: 5.35:1
AA ✓ pass · AA-large · AAA
Aa
#9f0dfb on black: 3.92:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.4%
Green5.1%
Blue98.4%

CMYK percentages

Cyan36.7%
Magenta94.8%
Yellow0.0%
Key (black)1.6%

Color previews

#9f0dfb text on a black background

contrast 3.92:1

Card sample

#9f0dfb text on a white background

contrast 5.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9f0dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9f0dfb in the Color Lab