Skip to content

#af4dfc

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

RGB
175, 77, 252
HSL
274°, 97%, 65%
CMYK
31, 69, 0, 1
Luminance
0.2145

Every format

HEX#af4dfc
RGBrgb(175, 77, 252)
HSLhsl(274, 97%, 65%)
CMYKcmyk(31%, 69%, 0%, 1%)
LABlab(53.4 68.7 -70.9)
LCHlch(53.4 98.7 314.1)
OKLCHoklch(0.629 0.249 306.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af4dfc on white: 3.97:1
AA ✗ fail · AA-large · AAA
Aa
#af4dfc on black: 5.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green30.2%
Blue98.8%

CMYK percentages

Cyan30.6%
Magenta69.4%
Yellow0.0%
Key (black)1.2%

Color previews

#af4dfc text on a black background

contrast 5.29:1

Card sample

#af4dfc text on a white background

contrast 3.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af4dfc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af4dfc in the Color Lab