Skip to content

#af0fd2

a dark, electric violet · warm · closest name: magenta

RGB
175, 15, 210
HSL
289°, 87%, 44%
CMYK
17, 93, 0, 18
Luminance
0.1411

Every format

HEX#af0fd2
RGBrgb(175, 15, 210)
HSLhsl(289, 87%, 44%)
CMYKcmyk(17%, 93%, 0%, 18%)
LABlab(44.4 78.2 -61.8)
LCHlch(44.4 99.6 321.7)
OKLCHoklch(0.556 0.263 318.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af0fd2 on white: 5.49:1
AA ✓ pass · AA-large · AAA
Aa
#af0fd2 on black: 3.82:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green5.9%
Blue82.4%

CMYK percentages

Cyan16.7%
Magenta92.9%
Yellow0.0%
Key (black)17.6%

Color previews

#af0fd2 text on a black background

contrast 3.82:1

Card sample

#af0fd2 text on a white background

contrast 5.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af0fd2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af0fd2 in the Color Lab