Skip to content

#8c3dfd

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

RGB
140, 61, 253
HSL
265°, 98%, 62%
CMYK
45, 76, 0, 1
Luminance
0.1600

Every format

HEX#8c3dfd
RGBrgb(140, 61, 253)
HSLhsl(265, 98%, 62%)
CMYKcmyk(45%, 76%, 0%, 1%)
LABlab(47.0 69.8 -82.1)
LCHlch(47.0 107.8 310.3)
OKLCHoklch(0.575 0.261 295.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8c3dfd on white: 5.00:1
AA ✓ pass · AA-large · AAA
Aa
#8c3dfd on black: 4.20:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.9%
Green23.9%
Blue99.2%

CMYK percentages

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

Color previews

#8c3dfd text on a black background

contrast 4.20:1

Card sample

#8c3dfd text on a white background

contrast 5.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8c3dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8c3dfd in the Color Lab