Skip to content

#af2cfd

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

RGB
175, 44, 253
HSL
278°, 98%, 58%
CMYK
31, 83, 0, 1
Luminance
0.1801

Every format

HEX#af2cfd
RGBrgb(175, 44, 253)
HSLhsl(278, 98%, 58%)
CMYKcmyk(31%, 83%, 0%, 1%)
LABlab(49.5 80.4 -77.8)
LCHlch(49.5 111.9 315.9)
OKLCHoklch(0.602 0.281 307.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2cfd on white: 4.56:1
AA ✓ pass · AA-large · AAA
Aa
#af2cfd on black: 4.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green17.3%
Blue99.2%

CMYK percentages

Cyan30.8%
Magenta82.6%
Yellow0.0%
Key (black)0.8%

Color previews

#af2cfd text on a black background

contrast 4.60:1

Card sample

#af2cfd text on a white background

contrast 4.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2cfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2cfd in the Color Lab