Skip to content

#af4cfd

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

RGB
175, 76, 253
HSL
274°, 98%, 65%
CMYK
31, 70, 0, 1
Luminance
0.2137

Every format

HEX#af4cfd
RGBrgb(175, 76, 253)
HSLhsl(274, 98%, 65%)
CMYKcmyk(31%, 70%, 0%, 1%)
LABlab(53.4 69.3 -71.5)
LCHlch(53.4 99.6 314.1)
OKLCHoklch(0.629 0.251 305.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af4cfd on white: 3.98:1
AA ✗ fail · AA-large · AAA
Aa
#af4cfd on black: 5.27:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green29.8%
Blue99.2%

CMYK percentages

Cyan30.8%
Magenta70.0%
Yellow0.0%
Key (black)0.8%

Color previews

#af4cfd text on a black background

contrast 5.27:1

Card sample

#af4cfd text on a white background

contrast 3.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af4cfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af4cfd in the Color Lab