Skip to content

#af3df9

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

RGB
175, 61, 249
HSL
276°, 94%, 61%
CMYK
30, 76, 0, 2
Luminance
0.1929

Every format

HEX#af3df9
RGBrgb(175, 61, 249)
HSLhsl(276, 94%, 61%)
CMYKcmyk(30%, 76%, 0%, 2%)
LABlab(51.0 74.3 -73.1)
LCHlch(51.0 104.3 315.5)
OKLCHoklch(0.611 0.263 307.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af3df9 on white: 4.32:1
AA ✗ fail · AA-large · AAA
Aa
#af3df9 on black: 4.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green23.9%
Blue97.6%

CMYK percentages

Cyan29.7%
Magenta75.5%
Yellow0.0%
Key (black)2.4%

Color previews

#af3df9 text on a black background

contrast 4.86:1

Card sample

#af3df9 text on a white background

contrast 4.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af3df9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af3df9 in the Color Lab