Skip to content

#af50dc

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

RGB
175, 80, 220
HSL
281°, 67%, 59%
CMYK
21, 64, 0, 14
Luminance
0.2002

Every format

HEX#af50dc
RGBrgb(175, 80, 220)
HSLhsl(281, 67%, 59%)
CMYKcmyk(21%, 64%, 0%, 14%)
LABlab(51.9 60.6 -55.5)
LCHlch(51.9 82.1 317.5)
OKLCHoklch(0.611 0.214 313.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af50dc on white: 4.20:1
AA ✗ fail · AA-large · AAA
Aa
#af50dc on black: 5.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green31.4%
Blue86.3%

CMYK percentages

Cyan20.5%
Magenta63.6%
Yellow0.0%
Key (black)13.7%

Color previews

#af50dc text on a black background

contrast 5.00:1

Card sample

#af50dc text on a white background

contrast 4.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af50dc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af50dc in the Color Lab