Skip to content

#5f2adf

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

RGB
95, 42, 223
HSL
258°, 74%, 52%
CMYK
57, 81, 0, 13
Luminance
0.0942

Every format

HEX#5f2adf
RGBrgb(95, 42, 223)
HSLhsl(258, 74%, 52%)
CMYKcmyk(57%, 81%, 0%, 13%)
LABlab(36.8 64.2 -82.1)
LCHlch(36.8 104.2 308.0)
OKLCHoklch(0.484 0.246 286.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5f2adf on white: 7.28:1
AA ✓ pass · AA-large · AAA
Aa
#5f2adf on black: 2.88:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red37.3%
Green16.5%
Blue87.5%

CMYK percentages

Cyan57.4%
Magenta81.2%
Yellow0.0%
Key (black)12.5%

Color previews

#5f2adf text on a black background

contrast 2.88:1

Card sample

#5f2adf text on a white background

contrast 7.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5f2adf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #5f2adf in the Color Lab