Skip to content

#af50eb

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

RGB
175, 80, 235
HSL
277°, 80%, 62%
CMYK
26, 66, 0, 8
Luminance
0.2085

Every format

HEX#af50eb
RGBrgb(175, 80, 235)
HSLhsl(277, 80%, 62%)
CMYKcmyk(26%, 66%, 0%, 8%)
LABlab(52.8 63.7 -62.4)
LCHlch(52.8 89.2 315.6)
OKLCHoklch(0.621 0.228 309.4)

Copy-ready code

/* CSS */
color: #af50eb;
background-color: #af50eb;
/* Tailwind (arbitrary) */
class="text-[#af50eb] bg-[#af50eb]"
/* SCSS */
$brand: #af50eb;
/* SwiftUI */
Color(red: 0.686, green: 0.314, blue: 0.922)
/* Android */
Color.parseColor("#af50eb")

Accessibility — WCAG contrast

Aa
#af50eb on white: 4.06:1
AA ✗ fail · AA-large · AAA
Aa
#af50eb on black: 5.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green31.4%
Blue92.2%

CMYK percentages

Cyan25.5%
Magenta66.0%
Yellow0.0%
Key (black)7.8%

Color previews

#af50eb text on a black background

contrast 5.17:1

Card sample

#af50eb text on a white background

contrast 4.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 80, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 80, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af50eb;
background: linear-gradient(135deg, #af50eb, #EB50C0);

Monochromatic scale

Palettes built from #af50eb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af50eb in the Color Lab