Skip to content

#af80ef

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

RGB
175, 128, 239
HSL
265°, 78%, 72%
CMYK
27, 46, 0, 6
Luminance
0.3078

Every format

HEX#af80ef
RGBrgb(175, 128, 239)
HSLhsl(265, 78%, 72%)
CMYKcmyk(27%, 46%, 0%, 6%)
LABlab(62.3 40.1 -49.4)
LCHlch(62.3 63.6 309.1)
OKLCHoklch(0.692 0.163 301.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green50.2%
Blue93.7%

CMYK percentages

Cyan26.8%
Magenta46.4%
Yellow0.0%
Key (black)6.3%

Color previews

#af80ef text on a black background

contrast 7.16:1

Card sample

#af80ef text on a white background

contrast 2.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af80ef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af80ef in the Color Lab