Skip to content

#af2ffc

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

RGB
175, 47, 252
HSL
278°, 97%, 59%
CMYK
31, 81, 0, 1
Luminance
0.1818

Every format

HEX#af2ffc
RGBrgb(175, 47, 252)
HSLhsl(278, 97%, 59%)
CMYKcmyk(31%, 81%, 0%, 1%)
LABlab(49.7 79.4 -76.9)
LCHlch(49.7 110.6 315.9)
OKLCHoklch(0.603 0.278 307.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green18.4%
Blue98.8%

CMYK percentages

Cyan30.6%
Magenta81.3%
Yellow0.0%
Key (black)1.2%

Color previews

#af2ffc text on a black background

contrast 4.64:1

Card sample

#af2ffc text on a white background

contrast 4.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2ffc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2ffc in the Color Lab