Skip to content

#af3cfe

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

RGB
175, 60, 254
HSL
276°, 99%, 62%
CMYK
31, 76, 0, 0
Luminance
0.1950

Every format

HEX#af3cfe
RGBrgb(175, 60, 254)
HSLhsl(276, 99%, 62%)
CMYKcmyk(31%, 76%, 0%, 0%)
LABlab(51.3 75.7 -75.5)
LCHlch(51.3 106.9 315.1)
OKLCHoklch(0.614 0.268 306.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af3cfe on white: 4.29:1
AA ✗ fail · AA-large · AAA
Aa
#af3cfe on black: 4.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green23.5%
Blue99.6%

CMYK percentages

Cyan31.1%
Magenta76.4%
Yellow0.0%
Key (black)0.4%

Color previews

#af3cfe text on a black background

contrast 4.90:1

Card sample

#af3cfe text on a white background

contrast 4.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af3cfe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af3cfe in the Color Lab