Skip to content

#af82f0

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

RGB
175, 130, 240
HSL
265°, 79%, 73%
CMYK
27, 46, 0, 6
Luminance
0.3137

Every format

HEX#af82f0
RGBrgb(175, 130, 240)
HSLhsl(265, 79%, 73%)
CMYKcmyk(27%, 46%, 0%, 6%)
LABlab(62.8 39.2 -49.2)
LCHlch(62.8 62.9 308.6)
OKLCHoklch(0.696 0.161 301.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af82f0 on white: 2.89:1
AA ✗ fail · AA-large · AAA
Aa
#af82f0 on black: 7.27:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green51.0%
Blue94.1%

CMYK percentages

Cyan27.1%
Magenta45.8%
Yellow0.0%
Key (black)5.9%

Color previews

#af82f0 text on a black background

contrast 7.27:1

Card sample

#af82f0 text on a white background

contrast 2.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af82f0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af82f0 in the Color Lab