Skip to content

#af81db

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

RGB
175, 129, 219
HSL
271°, 56%, 68%
CMYK
20, 41, 0, 14
Luminance
0.2993

Every format

HEX#af81db
RGBrgb(175, 129, 219)
HSLhsl(271, 56%, 68%)
CMYKcmyk(20%, 41%, 0%, 14%)
LABlab(61.6 34.9 -39.5)
LCHlch(61.6 52.7 311.5)
OKLCHoklch(0.683 0.137 306.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af81db on white: 3.01:1
AA ✗ fail · AA-large · AAA
Aa
#af81db on black: 6.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green50.6%
Blue85.9%

CMYK percentages

Cyan20.1%
Magenta41.1%
Yellow0.0%
Key (black)14.1%

Color previews

#af81db text on a black background

contrast 6.99:1

Card sample

#af81db text on a white background

contrast 3.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af81db

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af81db in the Color Lab