HEX Color Conversion

Hex Color Code #D3798C — RGB & HSL Conversions

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

To apply the hex color #D3798C in web design, set the color property inside your CSS stylesheet. For example, adding background-color: #D3798C; will paint elements in this warm undertone shade. In modern CSS structures, you can configure it as a custom variable --color-hex: #D3798C; or utilize it directly in Tailwind CSS via arbitrary utility values like bg-[#D3798C].

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

In the digital sRGB color space, the hex value #D3798C is converted to RGB values of Red: 211, Green: 121, and Blue: 140. When analyzed under the HSL model, its coordinates correspond to hue angle 347°, 51% saturation, and 65% lightness. This makes it visually a balanced medium tone with a balanced, moderate saturation.

CMYK print code settings for #D3798C

When converting #D3798C for CMYK printing, the color separation consists of 0% Cyan, 43% Magenta, 34% Yellow, and 17% key/black. Given its red-channel dominance, this color is a powerful visual stimulator often deployed in banners, call-to-actions, and warning components.

Red Channel 211
Green Channel 121
Blue Channel 140
Luminance 0.294

HEX #D3798C Color Space Conversions

Click to copy format
HEX Color Code #D3798C
RGB (Red Green Blue) rgb(211, 121, 140)
HSL (Hue Sat Light) hsl(347°, 51%, 65%)
CMYK (Commercial Print) cmyk(0%, 43%, 34%, 17%)
HSV / HSB Values hsv(347°, 43%, 83%)
Decimal Color Code 13859212
CSS Custom Variable --color-hex: #D3798C;
Tailwind CSS Utility bg-[#D3798C]

Contrast & Accessibility (WCAG 2.1) Check

White Text on Background

White text readability test with #D3798C

Small body copy preview

Black Text on Background

Black text readability test with #D3798C

Small body copy preview

Complementary & Analogous Harmonies

Perfect matching color schemes for your designs

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 #D3798C */
--color-hex: #D3798C;
--color-rgb: rgb(211, 121, 140);
--color-hsl: hsl(347deg, 51%, 65%);

Adjacent HEX Color Codes

Copied!