Skip to content

#5f2ccf

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

RGB
95, 44, 207
HSL
259°, 65%, 49%
CMYK
54, 79, 0, 19
Luminance
0.0874

Every format

HEX#5f2ccf
RGBrgb(95, 44, 207)
HSLhsl(259, 65%, 49%)
CMYKcmyk(54%, 79%, 0%, 19%)
LABlab(35.5 59.2 -75.0)
LCHlch(35.5 95.6 308.3)
OKLCHoklch(0.471 0.228 288.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5f2ccf on white: 7.64:1
AA ✓ pass · AA-large · AAA
Aa
#5f2ccf on black: 2.75:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red37.3%
Green17.3%
Blue81.2%

CMYK percentages

Cyan54.1%
Magenta78.7%
Yellow0.0%
Key (black)18.8%

Color previews

#5f2ccf text on a black background

contrast 2.75:1

Card sample

#5f2ccf text on a white background

contrast 7.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5f2ccf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #5f2ccf in the Color Lab