Skip to content

#5f2fef

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

RGB
95, 47, 239
HSL
255°, 86%, 56%
CMYK
60, 80, 0, 6
Luminance
0.1070

Every format

HEX#5f2fef
RGBrgb(95, 47, 239)
HSLhsl(255, 86%, 56%)
CMYKcmyk(60%, 80%, 0%, 6%)
LABlab(39.1 66.4 -87.5)
LCHlch(39.1 109.8 307.2)
OKLCHoklch(0.505 0.259 283.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5f2fef on white: 6.69:1
AA ✓ pass · AA-large · AAA
Aa
#5f2fef on black: 3.14:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red37.3%
Green18.4%
Blue93.7%

CMYK percentages

Cyan60.3%
Magenta80.3%
Yellow0.0%
Key (black)6.3%

Color previews

#5f2fef text on a black background

contrast 3.14:1

Card sample

#5f2fef text on a white background

contrast 6.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5f2fef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #5f2fef in the Color Lab