Skip to content

#af80f9

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

RGB
175, 128, 249
HSL
263°, 91%, 74%
CMYK
30, 49, 0, 2
Luminance
0.3139

Every format

HEX#af80f9
RGBrgb(175, 128, 249)
HSLhsl(263, 91%, 74%)
CMYKcmyk(30%, 49%, 0%, 2%)
LABlab(62.8 42.5 -54.1)
LCHlch(62.8 68.8 308.1)
OKLCHoklch(0.697 0.175 299.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af80f9 on white: 2.89:1
AA ✗ fail · AA-large · AAA
Aa
#af80f9 on black: 7.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green50.2%
Blue97.6%

CMYK percentages

Cyan29.7%
Magenta48.6%
Yellow0.0%
Key (black)2.4%

Color previews

#af80f9 text on a black background

contrast 7.28:1

Card sample

#af80f9 text on a white background

contrast 2.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af80f9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af80f9 in the Color Lab