Skip to content

#af64f0

a light, electric violet · warm · closest name: slateblue

RGB
175, 100, 240
HSL
272°, 82%, 67%
CMYK
27, 58, 0, 6
Luminance
0.2452

Every format

HEX#af64f0
RGBrgb(175, 100, 240)
HSLhsl(272, 82%, 67%)
CMYKcmyk(27%, 58%, 0%, 6%)
LABlab(56.6 55.3 -59.1)
LCHlch(56.6 80.9 313.1)
OKLCHoklch(0.649 0.207 306.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af64f0 on white: 3.56:1
AA ✗ fail · AA-large · AAA
Aa
#af64f0 on black: 5.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green39.2%
Blue94.1%

CMYK percentages

Cyan27.1%
Magenta58.3%
Yellow0.0%
Key (black)5.9%

Color previews

#af64f0 text on a black background

contrast 5.90:1

Card sample

#af64f0 text on a white background

contrast 3.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af64f0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af64f0 in the Color Lab