Skip to content

#af80fd

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

RGB
175, 128, 253
HSL
263°, 97%, 75%
CMYK
31, 49, 0, 1
Luminance
0.3164

Every format

HEX#af80fd
RGBrgb(175, 128, 253)
HSLhsl(263, 97%, 75%)
CMYKcmyk(31%, 49%, 0%, 1%)
LABlab(63.0 43.5 -56.0)
LCHlch(63.0 70.9 307.8)
OKLCHoklch(0.699 0.180 299.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af80fd on white: 2.87:1
AA ✗ fail · AA-large · AAA
Aa
#af80fd on black: 7.33:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green50.2%
Blue99.2%

CMYK percentages

Cyan30.8%
Magenta49.4%
Yellow0.0%
Key (black)0.8%

Color previews

#af80fd text on a black background

contrast 7.33:1

Card sample

#af80fd text on a white background

contrast 2.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af80fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af80fd in the Color Lab