Skip to content

#af51ce

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

RGB
175, 81, 206
HSL
285°, 56%, 56%
CMYK
15, 61, 0, 19
Luminance
0.1946

Every format

HEX#af51ce
RGBrgb(175, 81, 206)
HSLhsl(285, 56%, 56%)
CMYKcmyk(15%, 61%, 0%, 19%)
LABlab(51.2 57.2 -48.5)
LCHlch(51.2 75.0 319.7)
OKLCHoklch(0.604 0.199 316.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af51ce on white: 4.29:1
AA ✗ fail · AA-large · AAA
Aa
#af51ce on black: 4.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green31.8%
Blue80.8%

CMYK percentages

Cyan15.0%
Magenta60.7%
Yellow0.0%
Key (black)19.2%

Color previews

#af51ce text on a black background

contrast 4.89:1

Card sample

#af51ce text on a white background

contrast 4.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af51ce

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af51ce in the Color Lab