Skip to content

#af56db

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

RGB
175, 86, 219
HSL
280°, 65%, 60%
CMYK
20, 61, 0, 14
Luminance
0.2088

Every format

HEX#af56db
RGBrgb(175, 86, 219)
HSLhsl(280, 65%, 60%)
CMYKcmyk(20%, 61%, 0%, 14%)
LABlab(52.8 57.5 -53.3)
LCHlch(52.8 78.5 317.2)
OKLCHoklch(0.618 0.204 312.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af56db on white: 4.06:1
AA ✗ fail · AA-large · AAA
Aa
#af56db on black: 5.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green33.7%
Blue85.9%

CMYK percentages

Cyan20.1%
Magenta60.7%
Yellow0.0%
Key (black)14.1%

Color previews

#af56db text on a black background

contrast 5.18:1

Card sample

#af56db text on a white background

contrast 4.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af56db

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af56db in the Color Lab