Skip to content

#af33db

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

RGB
175, 51, 219
HSL
284°, 70%, 53%
CMYK
20, 77, 0, 14
Luminance
0.1660

Every format

HEX#af33db
RGBrgb(175, 51, 219)
HSLhsl(284, 70%, 53%)
CMYKcmyk(20%, 77%, 0%, 14%)
LABlab(47.8 71.8 -61.5)
LCHlch(47.8 94.5 319.4)
OKLCHoklch(0.582 0.246 315.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af33db on white: 4.86:1
AA ✓ pass · AA-large · AAA
Aa
#af33db on black: 4.32:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green20.0%
Blue85.9%

CMYK percentages

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

Color previews

#af33db text on a black background

contrast 4.32:1

Card sample

#af33db text on a white background

contrast 4.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af33db

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af33db in the Color Lab