Skip to content

#8c0dfd

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

RGB
140, 13, 253
HSL
272°, 98%, 52%
CMYK
45, 95, 0, 1
Luminance
0.1296

Every format

HEX#8c0dfd
RGBrgb(140, 13, 253)
HSLhsl(272, 98%, 52%)
CMYKcmyk(45%, 95%, 0%, 1%)
LABlab(42.7 82.4 -89.2)
LCHlch(42.7 121.4 312.7)
OKLCHoklch(0.545 0.289 298.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8c0dfd on white: 5.85:1
AA ✓ pass · AA-large · AAA
Aa
#8c0dfd on black: 3.59:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.9%
Green5.1%
Blue99.2%

CMYK percentages

Cyan44.7%
Magenta94.9%
Yellow0.0%
Key (black)0.8%

Color previews

#8c0dfd text on a black background

contrast 3.59:1

Card sample

#8c0dfd text on a white background

contrast 5.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8c0dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8c0dfd in the Color Lab