Skip to content

#5f2abf

a balanced, vivid violet · warm · closest name: indigo

RGB
95, 42, 191
HSL
261°, 64%, 46%
CMYK
50, 78, 0, 25
Luminance
0.0785

Every format

HEX#5f2abf
RGBrgb(95, 42, 191)
HSLhsl(261, 64%, 46%)
CMYKcmyk(50%, 78%, 0%, 25%)
LABlab(33.7 55.8 -68.7)
LCHlch(33.7 88.5 309.1)
OKLCHoklch(0.454 0.212 291.7)

Copy-ready code

/* CSS */
color: #5f2abf;
background-color: #5f2abf;
/* Tailwind (arbitrary) */
class="text-[#5f2abf] bg-[#5f2abf]"
/* SCSS */
$brand: #5f2abf;
/* SwiftUI */
Color(red: 0.373, green: 0.165, blue: 0.749)
/* Android */
Color.parseColor("#5f2abf")

Accessibility — WCAG contrast

Aa
#5f2abf on white: 8.17:1
AA ✓ pass · AA-large · AAA
Aa
#5f2abf on black: 2.57:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red37.3%
Green16.5%
Blue74.9%

CMYK percentages

Cyan50.3%
Magenta78.0%
Yellow0.0%
Key (black)25.1%

Color previews

#5f2abf text on a black background

contrast 2.57:1

Card sample

#5f2abf text on a white background

contrast 8.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5f2abf;
Background color
Panel with #5f2abf background
background-color: #5f2abf;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #5f2abf;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(95, 42, 191, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(95, 42, 191, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5f2abf;
background: linear-gradient(135deg, #5f2abf, #BF2ABC);

Monochromatic scale

Palettes built from #5f2abf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #5f2abf in the Color Lab