Skip to content

#8024db

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

RGB
128, 36, 219
HSL
270°, 72%, 50%
CMYK
42, 84, 0, 14
Luminance
0.1097

Every format

HEX#8024db
RGBrgb(128, 36, 219)
HSLhsl(270, 72%, 50%)
CMYKcmyk(42%, 84%, 0%, 14%)
LABlab(39.5 69.1 -75.2)
LCHlch(39.5 102.1 312.6)
OKLCHoklch(0.511 0.248 299.7)

Copy-ready code

/* CSS */
color: #8024db;
background-color: #8024db;
/* Tailwind (arbitrary) */
class="text-[#8024db] bg-[#8024db]"
/* SCSS */
$brand: #8024db;
/* SwiftUI */
Color(red: 0.502, green: 0.141, blue: 0.859)
/* Android */
Color.parseColor("#8024db")

Accessibility — WCAG contrast

Aa
#8024db on white: 6.58:1
AA ✓ pass · AA-large · AAA
Aa
#8024db on black: 3.19:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red50.2%
Green14.1%
Blue85.9%

CMYK percentages

Cyan41.6%
Magenta83.6%
Yellow0.0%
Key (black)14.1%

Color previews

#8024db text on a black background

contrast 3.19:1

Card sample

#8024db text on a white background

contrast 6.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #8024db;
Background color
Panel with #8024db background
background-color: #8024db;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(128, 36, 219, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(128, 36, 219, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8024db;
background: linear-gradient(135deg, #8024db, #DB24BC);

Monochromatic scale

Palettes built from #8024db

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8024db in the Color Lab