Skip to content

#8c45df

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

RGB
140, 69, 223
HSL
268°, 71%, 57%
CMYK
37, 69, 0, 13
Luminance
0.1516

Every format

HEX#8c45df
RGBrgb(140, 69, 223)
HSLhsl(268, 71%, 57%)
CMYKcmyk(37%, 69%, 0%, 13%)
LABlab(45.9 59.0 -67.1)
LCHlch(45.9 89.4 311.4)
OKLCHoklch(0.559 0.222 300.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8c45df on white: 5.21:1
AA ✓ pass · AA-large · AAA
Aa
#8c45df on black: 4.03:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.9%
Green27.1%
Blue87.5%

CMYK percentages

Cyan37.2%
Magenta69.1%
Yellow0.0%
Key (black)12.5%

Color previews

#8c45df text on a black background

contrast 4.03:1

Card sample

#8c45df text on a white background

contrast 5.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8c45df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8c45df in the Color Lab