Skip to content

#af47cc

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

RGB
175, 71, 204
HSL
287°, 57%, 54%
CMYK
14, 65, 0, 20
Luminance
0.1798

Every format

HEX#af47cc
RGBrgb(175, 71, 204)
HSLhsl(287, 57%, 54%)
CMYKcmyk(14%, 65%, 0%, 20%)
LABlab(49.5 61.3 -50.1)
LCHlch(49.5 79.2 320.7)
OKLCHoklch(0.591 0.210 318.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af47cc on white: 4.57:1
AA ✓ pass · AA-large · AAA
Aa
#af47cc on black: 4.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green27.8%
Blue80.0%

CMYK percentages

Cyan14.2%
Magenta65.2%
Yellow0.0%
Key (black)20.0%

Color previews

#af47cc text on a black background

contrast 4.60:1

Card sample

#af47cc text on a white background

contrast 4.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af47cc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af47cc in the Color Lab