Skip to content

#af50df

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

RGB
175, 80, 223
HSL
280°, 69%, 59%
CMYK
22, 64, 0, 13
Luminance
0.2018

Every format

HEX#af50df
RGBrgb(175, 80, 223)
HSLhsl(280, 69%, 59%)
CMYKcmyk(22%, 64%, 0%, 13%)
LABlab(52.0 61.2 -56.9)
LCHlch(52.0 83.5 317.1)
OKLCHoklch(0.613 0.217 312.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af50df on white: 4.17:1
AA ✗ fail · AA-large · AAA
Aa
#af50df on black: 5.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green31.4%
Blue87.5%

CMYK percentages

Cyan21.5%
Magenta64.1%
Yellow0.0%
Key (black)12.5%

Color previews

#af50df text on a black background

contrast 5.04:1

Card sample

#af50df text on a white background

contrast 4.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af50df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af50df in the Color Lab