Skip to content

#9b4fef

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

RGB
155, 79, 239
HSL
269°, 83%, 62%
CMYK
35, 67, 0, 6
Luminance
0.1879

Every format

HEX#9b4fef
RGBrgb(155, 79, 239)
HSLhsl(269, 83%, 62%)
CMYKcmyk(35%, 67%, 0%, 6%)
LABlab(50.4 61.0 -68.6)
LCHlch(50.4 91.8 311.7)
OKLCHoklch(0.600 0.229 301.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b4fef on white: 4.41:1
AA ✗ fail · AA-large · AAA
Aa
#9b4fef on black: 4.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.8%
Green31.0%
Blue93.7%

CMYK percentages

Cyan35.1%
Magenta66.9%
Yellow0.0%
Key (black)6.3%

Color previews

#9b4fef text on a black background

contrast 4.76:1

Card sample

#9b4fef text on a white background

contrast 4.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b4fef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9b4fef in the Color Lab