Skip to content

#af82f4

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

RGB
175, 130, 244
HSL
264°, 84%, 73%
CMYK
28, 47, 0, 4
Luminance
0.3161

Every format

HEX#af82f4
RGBrgb(175, 130, 244)
HSLhsl(264, 84%, 73%)
CMYKcmyk(28%, 47%, 0%, 4%)
LABlab(63.0 40.2 -51.1)
LCHlch(63.0 65.0 308.2)
OKLCHoklch(0.698 0.166 300.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af82f4 on white: 2.87:1
AA ✗ fail · AA-large · AAA
Aa
#af82f4 on black: 7.32:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green51.0%
Blue95.7%

CMYK percentages

Cyan28.3%
Magenta46.7%
Yellow0.0%
Key (black)4.3%

Color previews

#af82f4 text on a black background

contrast 7.32:1

Card sample

#af82f4 text on a white background

contrast 2.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af82f4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af82f4 in the Color Lab