Skip to content

#af92fc

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

RGB
175, 146, 252
HSL
256°, 95%, 78%
CMYK
31, 42, 0, 1
Luminance
0.3670

Every format

HEX#af92fc
RGBrgb(175, 146, 252)
HSLhsl(256, 95%, 78%)
CMYKcmyk(31%, 42%, 0%, 1%)
LABlab(67.0 33.2 -49.1)
LCHlch(67.0 59.3 304.1)
OKLCHoklch(0.729 0.152 295.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af92fc on white: 2.52:1
AA ✗ fail · AA-large · AAA
Aa
#af92fc on black: 8.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green57.3%
Blue98.8%

CMYK percentages

Cyan30.6%
Magenta42.1%
Yellow0.0%
Key (black)1.2%

Color previews

#af92fc text on a black background

contrast 8.34:1

Card sample

#af92fc text on a white background

contrast 2.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af92fc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af92fc in the Color Lab