Skip to content

#af50d2

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

RGB
175, 80, 210
HSL
284°, 59%, 57%
CMYK
17, 62, 0, 18
Luminance
0.1950

Every format

HEX#af50d2
RGBrgb(175, 80, 210)
HSLhsl(284, 59%, 57%)
CMYKcmyk(17%, 62%, 0%, 18%)
LABlab(51.3 58.5 -50.7)
LCHlch(51.3 77.4 319.1)
OKLCHoklch(0.605 0.204 315.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af50d2 on white: 4.28:1
AA ✗ fail · AA-large · AAA
Aa
#af50d2 on black: 4.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green31.4%
Blue82.4%

CMYK percentages

Cyan16.7%
Magenta61.9%
Yellow0.0%
Key (black)17.6%

Color previews

#af50d2 text on a black background

contrast 4.90:1

Card sample

#af50d2 text on a white background

contrast 4.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af50d2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af50d2 in the Color Lab