Skip to content

#af71d0

a balanced, vivid violet · warm · closest name: orchid

RGB
175, 113, 208
HSL
279°, 50%, 63%
CMYK
16, 46, 0, 18
Luminance
0.2548

Every format

HEX#af71d0
RGBrgb(175, 113, 208)
HSLhsl(279, 50%, 63%)
CMYKcmyk(16%, 46%, 0%, 18%)
LABlab(57.5 41.3 -39.6)
LCHlch(57.5 57.2 316.2)
OKLCHoklch(0.651 0.150 312.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af71d0 on white: 3.45:1
AA ✗ fail · AA-large · AAA
Aa
#af71d0 on black: 6.10:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green44.3%
Blue81.6%

CMYK percentages

Cyan15.9%
Magenta45.7%
Yellow0.0%
Key (black)18.4%

Color previews

#af71d0 text on a black background

contrast 6.10:1

Card sample

#af71d0 text on a white background

contrast 3.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af71d0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af71d0 in the Color Lab