Skip to content

#5f2fad

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

RGB
95, 47, 173
HSL
263°, 57%, 43%
CMYK
45, 73, 0, 32
Luminance
0.0748

Every format

HEX#5f2fad
RGBrgb(95, 47, 173)
HSLhsl(263, 57%, 43%)
CMYKcmyk(45%, 73%, 0%, 32%)
LABlab(32.9 48.7 -59.3)
LCHlch(32.9 76.8 309.4)
OKLCHoklch(0.443 0.187 295.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5f2fad on white: 8.41:1
AA ✓ pass · AA-large · AAA
Aa
#5f2fad on black: 2.50:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red37.3%
Green18.4%
Blue67.8%

CMYK percentages

Cyan45.1%
Magenta72.8%
Yellow0.0%
Key (black)32.2%

Color previews

#5f2fad text on a black background

contrast 2.50:1

Card sample

#5f2fad text on a white background

contrast 8.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5f2fad

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #5f2fad in the Color Lab