Skip to content

#af3cfd

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

RGB
175, 60, 253
HSL
276°, 98%, 61%
CMYK
31, 76, 0, 1
Luminance
0.1944

Every format

HEX#af3cfd
RGBrgb(175, 60, 253)
HSLhsl(276, 98%, 61%)
CMYKcmyk(31%, 76%, 0%, 1%)
LABlab(51.2 75.5 -75.1)
LCHlch(51.2 106.5 315.2)
OKLCHoklch(0.614 0.267 307.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af3cfd on white: 4.30:1
AA ✗ fail · AA-large · AAA
Aa
#af3cfd on black: 4.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

Cyan30.8%
Magenta76.3%
Yellow0.0%
Key (black)0.8%

Color previews

#af3cfd text on a black background

contrast 4.89:1

Card sample

#af3cfd text on a white background

contrast 4.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af3cfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af3cfd in the Color Lab