Skip to content

#af30fc

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

RGB
175, 48, 252
HSL
277°, 97%, 59%
CMYK
31, 81, 0, 1
Luminance
0.1826

Every format

HEX#af30fc
RGBrgb(175, 48, 252)
HSLhsl(277, 97%, 59%)
CMYKcmyk(31%, 81%, 0%, 1%)
LABlab(49.8 79.1 -76.8)
LCHlch(49.8 110.3 315.9)
OKLCHoklch(0.604 0.277 307.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af30fc on white: 4.51:1
AA ✓ pass · AA-large · AAA
Aa
#af30fc on black: 4.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green18.8%
Blue98.8%

CMYK percentages

Cyan30.6%
Magenta81.0%
Yellow0.0%
Key (black)1.2%

Color previews

#af30fc text on a black background

contrast 4.65:1

Card sample

#af30fc text on a white background

contrast 4.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af30fc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af30fc in the Color Lab