Skip to content

#8c1dfd

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

RGB
140, 29, 253
HSL
270°, 98%, 55%
CMYK
45, 89, 0, 1
Luminance
0.1355

Every format

HEX#8c1dfd
RGBrgb(140, 29, 253)
HSLhsl(270, 98%, 55%)
CMYKcmyk(45%, 89%, 0%, 1%)
LABlab(43.6 79.7 -87.7)
LCHlch(43.6 118.5 312.3)
OKLCHoklch(0.551 0.284 297.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8c1dfd on white: 5.66:1
AA ✓ pass · AA-large · AAA
Aa
#8c1dfd on black: 3.71:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.9%
Green11.4%
Blue99.2%

CMYK percentages

Cyan44.7%
Magenta88.5%
Yellow0.0%
Key (black)0.8%

Color previews

#8c1dfd text on a black background

contrast 3.71:1

Card sample

#8c1dfd text on a white background

contrast 5.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8c1dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8c1dfd in the Color Lab