Skip to content

#af3df0

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

RGB
175, 61, 240
HSL
278°, 86%, 59%
CMYK
27, 75, 0, 6
Luminance
0.1874

Every format

HEX#af3df0
RGBrgb(175, 61, 240)
HSLhsl(278, 86%, 59%)
CMYKcmyk(27%, 75%, 0%, 6%)
LABlab(50.4 72.5 -69.1)
LCHlch(50.4 100.2 316.4)
OKLCHoklch(0.605 0.255 309.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af3df0 on white: 4.42:1
AA ✗ fail · AA-large · AAA
Aa
#af3df0 on black: 4.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green23.9%
Blue94.1%

CMYK percentages

Cyan27.1%
Magenta74.6%
Yellow0.0%
Key (black)5.9%

Color previews

#af3df0 text on a black background

contrast 4.75:1

Card sample

#af3df0 text on a white background

contrast 4.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af3df0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af3df0 in the Color Lab