Skip to content

#af80f7

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

RGB
175, 128, 247
HSL
264°, 88%, 74%
CMYK
29, 48, 0, 3
Luminance
0.3127

Every format

HEX#af80f7
RGBrgb(175, 128, 247)
HSLhsl(264, 88%, 74%)
CMYKcmyk(29%, 48%, 0%, 3%)
LABlab(62.7 42.0 -53.2)
LCHlch(62.7 67.8 308.3)
OKLCHoklch(0.696 0.173 300.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af80f7 on white: 2.90:1
AA ✗ fail · AA-large · AAA
Aa
#af80f7 on black: 7.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green50.2%
Blue96.9%

CMYK percentages

Cyan29.1%
Magenta48.2%
Yellow0.0%
Key (black)3.1%

Color previews

#af80f7 text on a black background

contrast 7.25:1

Card sample

#af80f7 text on a white background

contrast 2.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af80f7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af80f7 in the Color Lab