Skip to content

#af8df0

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

RGB
175, 141, 240
HSL
261°, 77%, 75%
CMYK
27, 41, 0, 6
Luminance
0.3445

Every format

HEX#af8df0
RGBrgb(175, 141, 240)
HSLhsl(261, 77%, 75%)
CMYKcmyk(27%, 41%, 0%, 6%)
LABlab(65.3 33.1 -45.2)
LCHlch(65.3 56.1 306.2)
OKLCHoklch(0.714 0.144 298.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af8df0 on white: 2.66:1
AA ✗ fail · AA-large · AAA
Aa
#af8df0 on black: 7.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green55.3%
Blue94.1%

CMYK percentages

Cyan27.1%
Magenta41.3%
Yellow0.0%
Key (black)5.9%

Color previews

#af8df0 text on a black background

contrast 7.89:1

Card sample

#af8df0 text on a white background

contrast 2.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af8df0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af8df0 in the Color Lab