Skip to content

#8024ef

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

RGB
128, 36, 239
HSL
267°, 86%, 54%
CMYK
46, 85, 0, 6
Luminance
0.1208

Every format

HEX#8024ef
RGBrgb(128, 36, 239)
HSLhsl(267, 86%, 54%)
CMYKcmyk(46%, 85%, 0%, 6%)
LABlab(41.4 73.6 -83.6)
LCHlch(41.4 111.4 311.4)
OKLCHoklch(0.529 0.266 295.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8024ef on white: 6.15:1
AA ✓ pass · AA-large · AAA
Aa
#8024ef on black: 3.42:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red50.2%
Green14.1%
Blue93.7%

CMYK percentages

Cyan46.4%
Magenta84.9%
Yellow0.0%
Key (black)6.3%

Color previews

#8024ef text on a black background

contrast 3.42:1

Card sample

#8024ef text on a white background

contrast 6.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8024ef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8024ef in the Color Lab