Skip to content

#5f2fac

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

RGB
95, 47, 172
HSL
263°, 57%, 43%
CMYK
45, 73, 0, 33
Luminance
0.0744

Every format

HEX#5f2fac
RGBrgb(95, 47, 172)
HSLhsl(263, 57%, 43%)
CMYKcmyk(45%, 73%, 0%, 33%)
LABlab(32.8 48.5 -58.8)
LCHlch(32.8 76.2 309.5)
OKLCHoklch(0.442 0.186 295.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5f2fac on white: 8.44:1
AA ✓ pass · AA-large · AAA
Aa
#5f2fac on black: 2.49:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red37.3%
Green18.4%
Blue67.5%

CMYK percentages

Cyan44.8%
Magenta72.7%
Yellow0.0%
Key (black)32.5%

Color previews

#5f2fac text on a black background

contrast 2.49:1

Card sample

#5f2fac text on a white background

contrast 8.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5f2fac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #5f2fac in the Color Lab