Skip to content

#af4df6

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

RGB
175, 77, 246
HSL
275°, 90%, 63%
CMYK
29, 69, 0, 4
Luminance
0.2108

Every format

HEX#af4df6
RGBrgb(175, 77, 246)
HSLhsl(275, 90%, 63%)
CMYKcmyk(29%, 69%, 0%, 4%)
LABlab(53.0 67.4 -68.2)
LCHlch(53.0 95.9 314.7)
OKLCHoklch(0.625 0.243 307.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af4df6 on white: 4.03:1
AA ✗ fail · AA-large · AAA
Aa
#af4df6 on black: 5.22:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green30.2%
Blue96.5%

CMYK percentages

Cyan28.9%
Magenta68.7%
Yellow0.0%
Key (black)3.5%

Color previews

#af4df6 text on a black background

contrast 5.22:1

Card sample

#af4df6 text on a white background

contrast 4.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af4df6

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af4df6 in the Color Lab