Skip to content

#af92f1

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

RGB
175, 146, 241
HSL
258°, 77%, 76%
CMYK
27, 39, 0, 6
Luminance
0.3602

Every format

HEX#af92f1
RGBrgb(175, 146, 241)
HSLhsl(258, 77%, 76%)
CMYKcmyk(27%, 39%, 0%, 6%)
LABlab(66.5 30.5 -43.9)
LCHlch(66.5 53.5 304.8)
OKLCHoklch(0.724 0.137 296.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af92f1 on white: 2.56:1
AA ✗ fail · AA-large · AAA
Aa
#af92f1 on black: 8.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green57.3%
Blue94.5%

CMYK percentages

Cyan27.4%
Magenta39.4%
Yellow0.0%
Key (black)5.5%

Color previews

#af92f1 text on a black background

contrast 8.20:1

Card sample

#af92f1 text on a white background

contrast 2.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af92f1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af92f1 in the Color Lab