Skip to content

#af65ff

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

RGB
175, 101, 255
HSL
269°, 100%, 70%
CMYK
31, 60, 0, 0
Luminance
0.2564

Every format

HEX#af65ff
RGBrgb(175, 101, 255)
HSLhsl(269, 100%, 70%)
CMYKcmyk(31%, 60%, 0%, 0%)
LABlab(57.7 58.2 -65.7)
LCHlch(57.7 87.8 311.6)
OKLCHoklch(0.660 0.222 302.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af65ff on white: 3.43:1
AA ✗ fail · AA-large · AAA
Aa
#af65ff on black: 6.13:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green39.6%
Blue100.0%

CMYK percentages

Cyan31.4%
Magenta60.4%
Yellow0.0%
Key (black)0.0%

Color previews

#af65ff text on a black background

contrast 6.13:1

Card sample

#af65ff text on a white background

contrast 3.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af65ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af65ff in the Color Lab