Skip to content

#af3afc

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

RGB
175, 58, 252
HSL
276°, 97%, 61%
CMYK
31, 77, 0, 1
Luminance
0.1917

Every format

HEX#af3afc
RGBrgb(175, 58, 252)
HSLhsl(276, 97%, 61%)
CMYKcmyk(31%, 77%, 0%, 1%)
LABlab(50.9 76.0 -75.0)
LCHlch(50.9 106.8 315.4)
OKLCHoklch(0.611 0.268 307.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af3afc on white: 4.34:1
AA ✗ fail · AA-large · AAA
Aa
#af3afc on black: 4.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green22.7%
Blue98.8%

CMYK percentages

Cyan30.6%
Magenta77.0%
Yellow0.0%
Key (black)1.2%

Color previews

#af3afc text on a black background

contrast 4.83:1

Card sample

#af3afc text on a white background

contrast 4.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af3afc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af3afc in the Color Lab