Skip to content

#c7afdb

a light, soft violet · warm · closest name: plum

RGB
199, 175, 219
HSL
273°, 38%, 77%
CMYK
9, 20, 0, 14
Luminance
0.4792

Every format

HEX#c7afdb
RGBrgb(199, 175, 219)
HSLhsl(273, 38%, 77%)
CMYKcmyk(9%, 20%, 0%, 14%)
LABlab(74.8 16.8 -19.0)
LCHlch(74.8 25.3 311.5)
OKLCHoklch(0.789 0.067 309.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c7afdb on white: 1.98:1
AA ✗ fail · AA-large · AAA
Aa
#c7afdb on black: 10.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red78.0%
Green68.6%
Blue85.9%

CMYK percentages

Cyan9.1%
Magenta20.1%
Yellow0.0%
Key (black)14.1%

Color previews

#c7afdb text on a black background

contrast 10.58:1

Card sample

#c7afdb text on a white background

contrast 1.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c7afdb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c7afdb in the Color Lab