Skip to content

#af2adb

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

RGB
175, 42, 219
HSL
285°, 71%, 51%
CMYK
20, 81, 0, 14
Luminance
0.1588

Every format

HEX#af2adb
RGBrgb(175, 42, 219)
HSLhsl(285, 71%, 51%)
CMYKcmyk(20%, 81%, 0%, 14%)
LABlab(46.8 74.5 -63.0)
LCHlch(46.8 97.5 319.8)
OKLCHoklch(0.575 0.254 315.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2adb on white: 5.03:1
AA ✓ pass · AA-large · AAA
Aa
#af2adb on black: 4.18:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green16.5%
Blue85.9%

CMYK percentages

Cyan20.1%
Magenta80.8%
Yellow0.0%
Key (black)14.1%

Color previews

#af2adb text on a black background

contrast 4.18:1

Card sample

#af2adb text on a white background

contrast 5.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2adb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2adb in the Color Lab