Skip to content

#af34db

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

RGB
175, 52, 219
HSL
284°, 70%, 53%
CMYK
20, 76, 0, 14
Luminance
0.1668

Every format

HEX#af34db
RGBrgb(175, 52, 219)
HSLhsl(284, 70%, 53%)
CMYKcmyk(20%, 76%, 0%, 14%)
LABlab(47.9 71.5 -61.3)
LCHlch(47.9 94.2 319.4)
OKLCHoklch(0.583 0.245 315.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af34db on white: 4.84:1
AA ✓ pass · AA-large · AAA
Aa
#af34db on black: 4.34:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green20.4%
Blue85.9%

CMYK percentages

Cyan20.1%
Magenta76.3%
Yellow0.0%
Key (black)14.1%

Color previews

#af34db text on a black background

contrast 4.34:1

Card sample

#af34db text on a white background

contrast 4.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af34db

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af34db in the Color Lab