Skip to content

#8f2fdb

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

RGB
143, 47, 219
HSL
274°, 71%, 52%
CMYK
35, 79, 0, 14
Luminance
0.1299

Every format

HEX#8f2fdb
RGBrgb(143, 47, 219)
HSLhsl(274, 71%, 52%)
CMYKcmyk(35%, 79%, 0%, 14%)
LABlab(42.7 67.7 -69.8)
LCHlch(42.7 97.3 314.1)
OKLCHoklch(0.537 0.241 304.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8f2fdb on white: 5.84:1
AA ✓ pass · AA-large · AAA
Aa
#8f2fdb on black: 3.60:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red56.1%
Green18.4%
Blue85.9%

CMYK percentages

Cyan34.7%
Magenta78.5%
Yellow0.0%
Key (black)14.1%

Color previews

#8f2fdb text on a black background

contrast 3.60:1

Card sample

#8f2fdb text on a white background

contrast 5.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8f2fdb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8f2fdb in the Color Lab