Skip to content

#af3cf2

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

RGB
175, 60, 242
HSL
278°, 88%, 59%
CMYK
28, 75, 0, 5
Luminance
0.1876

Every format

HEX#af3cf2
RGBrgb(175, 60, 242)
HSLhsl(278, 88%, 59%)
CMYKcmyk(28%, 75%, 0%, 5%)
LABlab(50.4 73.3 -70.2)
LCHlch(50.4 101.5 316.2)
OKLCHoklch(0.605 0.258 309.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green23.5%
Blue94.9%

CMYK percentages

Cyan27.7%
Magenta75.2%
Yellow0.0%
Key (black)5.1%

Color previews

#af3cf2 text on a black background

contrast 4.75:1

Card sample

#af3cf2 text on a white background

contrast 4.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af3cf2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af3cf2 in the Color Lab