Skip to content

#9b2fee

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

RGB
155, 47, 238
HSL
274°, 85%, 56%
CMYK
35, 80, 0, 7
Luminance
0.1517

Every format

HEX#9b2fee
RGBrgb(155, 47, 238)
HSLhsl(274, 85%, 56%)
CMYKcmyk(35%, 80%, 0%, 7%)
LABlab(45.9 73.6 -75.5)
LCHlch(45.9 105.4 314.3)
OKLCHoklch(0.567 0.261 304.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b2fee on white: 5.20:1
AA ✓ pass · AA-large · AAA
Aa
#9b2fee on black: 4.03:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.8%
Green18.4%
Blue93.3%

CMYK percentages

Cyan34.9%
Magenta80.3%
Yellow0.0%
Key (black)6.7%

Color previews

#9b2fee text on a black background

contrast 4.03:1

Card sample

#9b2fee text on a white background

contrast 5.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b2fee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9b2fee in the Color Lab