Skip to content

#af9df5

a light, electric blue · warm · closest name: plum

RGB
175, 157, 245
HSL
252°, 82%, 79%
CMYK
29, 36, 0, 4
Luminance
0.3982

Every format

HEX#af9df5
RGBrgb(175, 157, 245)
HSLhsl(252, 82%, 79%)
CMYKcmyk(29%, 36%, 0%, 4%)
LABlab(69.3 25.3 -41.7)
LCHlch(69.3 48.8 301.3)
OKLCHoklch(0.746 0.126 292.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af9df5 on white: 2.34:1
AA ✗ fail · AA-large · AAA
Aa
#af9df5 on black: 8.96:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green61.6%
Blue96.1%

CMYK percentages

Cyan28.6%
Magenta35.9%
Yellow0.0%
Key (black)3.9%

Color previews

#af9df5 text on a black background

contrast 8.96:1

Card sample

#af9df5 text on a white background

contrast 2.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af9df5

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af9df5 in the Color Lab