Skip to content

#af4aff

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

RGB
175, 74, 255
HSL
274°, 100%, 65%
CMYK
31, 71, 0, 0
Luminance
0.2123

Every format

HEX#af4aff
RGBrgb(175, 74, 255)
HSLhsl(274, 100%, 65%)
CMYKcmyk(31%, 71%, 0%, 0%)
LABlab(53.2 70.6 -72.9)
LCHlch(53.2 101.5 314.1)
OKLCHoklch(0.628 0.255 305.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af4aff on white: 4.00:1
AA ✗ fail · AA-large · AAA
Aa
#af4aff on black: 5.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green29.0%
Blue100.0%

CMYK percentages

Cyan31.4%
Magenta71.0%
Yellow0.0%
Key (black)0.0%

Color previews

#af4aff text on a black background

contrast 5.25:1

Card sample

#af4aff text on a white background

contrast 4.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af4aff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af4aff in the Color Lab