Skip to content

#8c1dfb

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

RGB
140, 29, 251
HSL
270°, 97%, 55%
CMYK
44, 88, 0, 2
Luminance
0.1342

Every format

HEX#8c1dfb
RGBrgb(140, 29, 251)
HSLhsl(270, 97%, 55%)
CMYKcmyk(44%, 88%, 0%, 2%)
LABlab(43.4 79.3 -86.9)
LCHlch(43.4 117.7 312.4)
OKLCHoklch(0.549 0.282 297.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8c1dfb on white: 5.70:1
AA ✓ pass · AA-large · AAA
Aa
#8c1dfb on black: 3.68:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.9%
Green11.4%
Blue98.4%

CMYK percentages

Cyan44.2%
Magenta88.4%
Yellow0.0%
Key (black)1.6%

Color previews

#8c1dfb text on a black background

contrast 3.68:1

Card sample

#8c1dfb text on a white background

contrast 5.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(140, 29, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(140, 29, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8c1dfb;
background: linear-gradient(135deg, #8c1dfb, #FB1DD6);

Monochromatic scale

Palettes built from #8c1dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8c1dfb in the Color Lab