Skip to content

#cdc7df

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

RGB
205, 199, 223
HSL
255°, 27%, 83%
CMYK
8, 11, 0, 13
Luminance
0.5915

Every format

HEX#cdc7df
RGBrgb(205, 199, 223)
HSLhsl(255, 27%, 83%)
CMYKcmyk(8%, 11%, 0%, 13%)
LABlab(81.4 6.6 -11.2)
LCHlch(81.4 13.0 300.6)
OKLCHoklch(0.842 0.034 297.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdc7df on white: 1.64:1
AA ✗ fail · AA-large · AAA
Aa
#cdc7df on black: 12.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green78.0%
Blue87.5%

CMYK percentages

Cyan8.1%
Magenta10.8%
Yellow0.0%
Key (black)12.5%

Color previews

#cdc7df text on a black background

contrast 12.83:1

Card sample

#cdc7df text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdc7df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdc7df in the Color Lab