Skip to content

#af60eb

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

RGB
175, 96, 235
HSL
274°, 78%, 65%
CMYK
26, 59, 0, 8
Luminance
0.2348

Every format

HEX#af60eb
RGBrgb(175, 96, 235)
HSLhsl(274, 78%, 65%)
CMYKcmyk(26%, 59%, 0%, 8%)
LABlab(55.6 56.1 -58.0)
LCHlch(55.6 80.7 314.1)
OKLCHoklch(0.641 0.207 307.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af60eb on white: 3.69:1
AA ✗ fail · AA-large · AAA
Aa
#af60eb on black: 5.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green37.6%
Blue92.2%

CMYK percentages

Cyan25.5%
Magenta59.1%
Yellow0.0%
Key (black)7.8%

Color previews

#af60eb text on a black background

contrast 5.70:1

Card sample

#af60eb text on a white background

contrast 3.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af60eb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af60eb in the Color Lab