Skip to content

#af45fc

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

RGB
175, 69, 252
HSL
275°, 97%, 63%
CMYK
31, 73, 0, 1
Luminance
0.2040

Every format

HEX#af45fc
RGBrgb(175, 69, 252)
HSLhsl(275, 97%, 63%)
CMYKcmyk(31%, 73%, 0%, 1%)
LABlab(52.3 72.0 -72.7)
LCHlch(52.3 102.3 314.7)
OKLCHoklch(0.621 0.258 306.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af45fc on white: 4.13:1
AA ✗ fail · AA-large · AAA
Aa
#af45fc on black: 5.08:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green27.1%
Blue98.8%

CMYK percentages

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

Color previews

#af45fc text on a black background

contrast 5.08:1

Card sample

#af45fc text on a white background

contrast 4.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af45fc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af45fc in the Color Lab