HEX Color Conversion

Hex Color Code #D8AFD8 — RGB & HSL Conversions

How to use the #D8AFD8 color code in HTML & CSS?

For developers, implementing the #D8AFD8 color code involves declaring it in your styles. In stylesheet designs, use color: #D8AFD8; for text alignment. If you are developing with utility-first layouts, you can invoke it in Tailwind as text-[#D8AFD8] or custom configure it in your theme files.

What are the RGB and HSL conversion values for #D8AFD8?

The RGB code for #D8AFD8 is computed as rgb(216, 175, 216). Web designers using HSL values will find it at a hue of 300°, saturation of 34%, and lightness index of 77%, representing a soft, understated pastel shade.

CMYK print code settings for #D8AFD8

For print design setups, the CMYK values for the #D8AFD8 color code are Cyan: 0%, Magenta: 19%, Yellow: 0%, and Black: 15%. These neutral color boundaries serve as solid structural backgrounds, layouts, and typography grids.

Red Channel 216
Green Channel 175
Blue Channel 216
Luminance 0.502

HEX #D8AFD8 Color Space Conversions

Click to copy format
HEX Color Code #D8AFD8
RGB (Red Green Blue) rgb(216, 175, 216)
HSL (Hue Sat Light) hsl(300°, 34%, 77%)
CMYK (Commercial Print) cmyk(0%, 19%, 0%, 15%)
HSV / HSB Values hsv(300°, 19%, 85%)
Decimal Color Code 14200792
CSS Custom Variable --color-hex: #D8AFD8;
Tailwind CSS Utility bg-[#D8AFD8]

Contrast & Accessibility (WCAG 2.1) Check

White Text on Background

White text readability test with #D8AFD8

Small body copy preview

Black Text on Background

Black text readability test with #D8AFD8

Small body copy preview

Complementary & Analogous Harmonies

Computed dynamically

Shades & Tints Generator Matrix

Copy shade hex values instantly

Darker Shades (Adding Black)

Lighter Tints (Adding White)

{ } CSS Custom Properties (Variables)

Copy CSS Styles
/* CSS Custom Properties for color #D8AFD8 */
--color-hex: #D8AFD8;
--color-rgb: rgb(216, 175, 216);
--color-hsl: hsl(300deg, 34%, 77%);

Adjacent HEX Color Codes

Copied!