Skip to content

#af80f0

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

RGB
175, 128, 240
HSL
265°, 79%, 72%
CMYK
27, 47, 0, 6
Luminance
0.3084

Every format

HEX#af80f0
RGBrgb(175, 128, 240)
HSLhsl(265, 79%, 72%)
CMYKcmyk(27%, 47%, 0%, 6%)
LABlab(62.4 40.3 -49.9)
LCHlch(62.4 64.2 309.0)
OKLCHoklch(0.692 0.164 301.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af80f0 on white: 2.93:1
AA ✗ fail · AA-large · AAA
Aa
#af80f0 on black: 7.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green50.2%
Blue94.1%

CMYK percentages

Cyan27.1%
Magenta46.7%
Yellow0.0%
Key (black)5.9%

Color previews

#af80f0 text on a black background

contrast 7.17:1

Card sample

#af80f0 text on a white background

contrast 2.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af80f0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af80f0 in the Color Lab