Skip to content

#af92d2

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

RGB
175, 146, 210
HSL
267°, 42%, 70%
CMYK
17, 31, 0, 18
Luminance
0.3432

Every format

HEX#af92d2
RGBrgb(175, 146, 210)
HSLhsl(267, 42%, 70%)
CMYKcmyk(17%, 31%, 0%, 18%)
LABlab(65.2 23.3 -28.8)
LCHlch(65.2 37.1 309.0)
OKLCHoklch(0.709 0.096 304.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af92d2 on white: 2.67:1
AA ✗ fail · AA-large · AAA
Aa
#af92d2 on black: 7.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green57.3%
Blue82.4%

CMYK percentages

Cyan16.7%
Magenta30.5%
Yellow0.0%
Key (black)17.6%

Color previews

#af92d2 text on a black background

contrast 7.86:1

Card sample

#af92d2 text on a white background

contrast 2.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af92d2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af92d2 in the Color Lab