Skip to content

#af40df

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

RGB
175, 64, 223
HSL
282°, 71%, 56%
CMYK
22, 71, 0, 13
Luminance
0.1811

Every format

HEX#af40df
RGBrgb(175, 64, 223)
HSLhsl(282, 71%, 56%)
CMYKcmyk(22%, 71%, 0%, 13%)
LABlab(49.6 67.9 -60.7)
LCHlch(49.6 91.1 318.2)
OKLCHoklch(0.596 0.236 313.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af40df on white: 4.54:1
AA ✓ pass · AA-large · AAA
Aa
#af40df on black: 4.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green25.1%
Blue87.5%

CMYK percentages

Cyan21.5%
Magenta71.3%
Yellow0.0%
Key (black)12.5%

Color previews

#af40df text on a black background

contrast 4.62:1

Card sample

#af40df text on a white background

contrast 4.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af40df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af40df in the Color Lab