Skip to content

#af28db

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

RGB
175, 40, 219
HSL
285°, 71%, 51%
CMYK
20, 82, 0, 14
Luminance
0.1575

Every format

HEX#af28db
RGBrgb(175, 40, 219)
HSLhsl(285, 71%, 51%)
CMYKcmyk(20%, 82%, 0%, 14%)
LABlab(46.6 75.0 -63.3)
LCHlch(46.6 98.1 319.8)
OKLCHoklch(0.574 0.256 315.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af28db on white: 5.06:1
AA ✓ pass · AA-large · AAA
Aa
#af28db on black: 4.15:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green15.7%
Blue85.9%

CMYK percentages

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

Color previews

#af28db text on a black background

contrast 4.15:1

Card sample

#af28db text on a white background

contrast 5.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af28db

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af28db in the Color Lab