Skip to content

#af40d2

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

RGB
175, 64, 210
HSL
286°, 62%, 54%
CMYK
17, 70, 0, 18
Luminance
0.1743

Every format

HEX#af40d2
RGBrgb(175, 64, 210)
HSLhsl(286, 62%, 54%)
CMYKcmyk(17%, 70%, 0%, 18%)
LABlab(48.8 65.4 -54.6)
LCHlch(48.8 85.2 320.1)
OKLCHoklch(0.587 0.225 316.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af40d2 on white: 4.68:1
AA ✓ pass · AA-large · AAA
Aa
#af40d2 on black: 4.49:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green25.1%
Blue82.4%

CMYK percentages

Cyan16.7%
Magenta69.5%
Yellow0.0%
Key (black)17.6%

Color previews

#af40d2 text on a black background

contrast 4.49:1

Card sample

#af40d2 text on a white background

contrast 4.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af40d2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af40d2 in the Color Lab