Skip to content

#af80f3

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

RGB
175, 128, 243
HSL
265°, 83%, 73%
CMYK
28, 47, 0, 5
Luminance
0.3102

Every format

HEX#af80f3
RGBrgb(175, 128, 243)
HSLhsl(265, 83%, 73%)
CMYKcmyk(28%, 47%, 0%, 5%)
LABlab(62.5 41.1 -51.3)
LCHlch(62.5 65.7 308.7)
OKLCHoklch(0.694 0.168 301.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af80f3 on white: 2.91:1
AA ✗ fail · AA-large · AAA
Aa
#af80f3 on black: 7.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green50.2%
Blue95.3%

CMYK percentages

Cyan28.0%
Magenta47.3%
Yellow0.0%
Key (black)4.7%

Color previews

#af80f3 text on a black background

contrast 7.20:1

Card sample

#af80f3 text on a white background

contrast 2.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af80f3

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af80f3 in the Color Lab