Skip to content

#af72f1

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

RGB
175, 114, 241
HSL
269°, 82%, 70%
CMYK
27, 53, 0, 6
Luminance
0.2750

Every format

HEX#af72f1
RGBrgb(175, 114, 241)
HSLhsl(269, 82%, 70%)
CMYKcmyk(27%, 53%, 0%, 6%)
LABlab(59.4 48.2 -55.1)
LCHlch(59.4 73.2 311.2)
OKLCHoklch(0.670 0.187 304.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af72f1 on white: 3.23:1
AA ✗ fail · AA-large · AAA
Aa
#af72f1 on black: 6.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green44.7%
Blue94.5%

CMYK percentages

Cyan27.4%
Magenta52.7%
Yellow0.0%
Key (black)5.5%

Color previews

#af72f1 text on a black background

contrast 6.50:1

Card sample

#af72f1 text on a white background

contrast 3.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af72f1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af72f1 in the Color Lab