Skip to content

#8f2fee

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

RGB
143, 47, 238
HSL
270°, 85%, 56%
CMYK
40, 80, 0, 7
Luminance
0.1405

Every format

HEX#8f2fee
RGBrgb(143, 47, 238)
HSLhsl(270, 85%, 56%)
CMYKcmyk(40%, 80%, 0%, 7%)
LABlab(44.3 71.9 -78.1)
LCHlch(44.3 106.1 312.6)
OKLCHoklch(0.553 0.259 300.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8f2fee on white: 5.51:1
AA ✓ pass · AA-large · AAA
Aa
#8f2fee on black: 3.81:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red56.1%
Green18.4%
Blue93.3%

CMYK percentages

Cyan39.9%
Magenta80.3%
Yellow0.0%
Key (black)6.7%

Color previews

#8f2fee text on a black background

contrast 3.81:1

Card sample

#8f2fee text on a white background

contrast 5.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #8f2fee;
Background color
Panel with #8f2fee background
background-color: #8f2fee;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(143, 47, 238, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(143, 47, 238, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8f2fee;
background: linear-gradient(135deg, #8f2fee, #EE2FCE);

Monochromatic scale

Palettes built from #8f2fee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8f2fee in the Color Lab