Skip to content

#af2dff

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

RGB
175, 45, 255
HSL
277°, 100%, 59%
CMYK
31, 82, 0, 0
Luminance
0.1821

Every format

HEX#af2dff
RGBrgb(175, 45, 255)
HSLhsl(277, 100%, 59%)
CMYKcmyk(31%, 82%, 0%, 0%)
LABlab(49.8 80.6 -78.5)
LCHlch(49.8 112.5 315.7)
OKLCHoklch(0.604 0.281 307.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2dff on white: 4.52:1
AA ✓ pass · AA-large · AAA
Aa
#af2dff on black: 4.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green17.6%
Blue100.0%

CMYK percentages

Cyan31.4%
Magenta82.4%
Yellow0.0%
Key (black)0.0%

Color previews

#af2dff text on a black background

contrast 4.64:1

Card sample

#af2dff text on a white background

contrast 4.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2dff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2dff in the Color Lab