Skip to content

#af7ff0

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

RGB
175, 127, 240
HSL
266°, 79%, 72%
CMYK
27, 47, 0, 6
Luminance
0.3058

Every format

HEX#af7ff0
RGBrgb(175, 127, 240)
HSLhsl(266, 79%, 72%)
CMYKcmyk(27%, 47%, 0%, 6%)
LABlab(62.1 40.9 -50.2)
LCHlch(62.1 64.8 309.1)
OKLCHoklch(0.691 0.166 301.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af7ff0 on white: 2.95:1
AA ✗ fail · AA-large · AAA
Aa
#af7ff0 on black: 7.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green49.8%
Blue94.1%

CMYK percentages

Cyan27.1%
Magenta47.1%
Yellow0.0%
Key (black)5.9%

Color previews

#af7ff0 text on a black background

contrast 7.12:1

Card sample

#af7ff0 text on a white background

contrast 2.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7ff0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af7ff0 in the Color Lab