Skip to content

#8024ff

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

RGB
128, 36, 255
HSL
265°, 100%, 57%
CMYK
50, 86, 0, 0
Luminance
0.1307

Every format

HEX#8024ff
RGBrgb(128, 36, 255)
HSLhsl(265, 100%, 57%)
CMYKcmyk(50%, 86%, 0%, 0%)
LABlab(42.9 77.3 -90.0)
LCHlch(42.9 118.7 310.6)
OKLCHoklch(0.544 0.281 292.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8024ff on white: 5.81:1
AA ✓ pass · AA-large · AAA
Aa
#8024ff on black: 3.61:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red50.2%
Green14.1%
Blue100.0%

CMYK percentages

Cyan49.8%
Magenta85.9%
Yellow0.0%
Key (black)0.0%

Color previews

#8024ff text on a black background

contrast 3.61:1

Card sample

#8024ff text on a white background

contrast 5.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8024ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8024ff in the Color Lab