Skip to content

#af4afb

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

RGB
175, 74, 251
HSL
274°, 96%, 64%
CMYK
30, 71, 0, 2
Luminance
0.2098

Every format

HEX#af4afb
RGBrgb(175, 74, 251)
HSLhsl(274, 96%, 64%)
CMYKcmyk(30%, 71%, 0%, 2%)
LABlab(52.9 69.8 -71.1)
LCHlch(52.9 99.6 314.4)
OKLCHoklch(0.625 0.251 306.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af4afb on white: 4.04:1
AA ✗ fail · AA-large · AAA
Aa
#af4afb on black: 5.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green29.0%
Blue98.4%

CMYK percentages

Cyan30.3%
Magenta70.5%
Yellow0.0%
Key (black)1.6%

Color previews

#af4afb text on a black background

contrast 5.20:1

Card sample

#af4afb text on a white background

contrast 4.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af4afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af4afb in the Color Lab