Skip to content

#af0cfd

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

RGB
175, 12, 253
HSL
281°, 98%, 52%
CMYK
31, 95, 0, 1
Luminance
0.1647

Every format

HEX#af0cfd
RGBrgb(175, 12, 253)
HSLhsl(281, 98%, 52%)
CMYKcmyk(31%, 95%, 0%, 1%)
LABlab(47.6 86.1 -81.0)
LCHlch(47.6 118.2 316.8)
OKLCHoklch(0.589 0.295 308.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green4.7%
Blue99.2%

CMYK percentages

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

Color previews

#af0cfd text on a black background

contrast 4.29:1

Card sample

#af0cfd text on a white background

contrast 4.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af0cfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af0cfd in the Color Lab