COLOR #D8D798

HEX: #D8D798 RGB: (216,215,152)

Color info

#D8D798 contains mainly red and green colors. Web safe color of #D8D798 is #CCCC99 (or #CC9).

RGB color model

#D8D798 color RGB value is (216,215,152).

RGB: (216,215,152) (85%, 84%, 60%)

RGB channels and saturation

R 216 of 255 = 85%
G 215 of 255 = 84%
B 152 of 255 = 60%

216
215
152

R + G + B ~ 76%. #D8D798 is quite light color.

Portions of RGB colors in percentages

R + G + B = 216 + 215 + 152 = 583 (100%)
R 216 of 583 ~ 37.05%
G 215 of 583 ~ 36.88%
B 152 of 583 ~ 26.07'%

%37.05
%36.88
%26.07

CMYK color model

#D8D798 color CMYK value is (0,0,30,15).

  • cyan value is 0.00%
  • magenta value is 0.46%
  • yellow value is 29.63%
  • key color value is 15.29%

CMYK: (0,0,30,15)
C0M0Y30K15 (0%, 0%, 30%, 15%)
(0.00 / 0.00 / 0.30 / 0.15)

CMYK percentages

%0
%0.46
%29.63
%15.29

Codes

Color #D8D798 in popluar color models

D8 D7 98
RGB 216 215 152
HSL 59° 45.07% 72.16%
HSB/HSV 59° 29.63% 84.71%
CMYK 0.00% 0.46% 29.63%
15.29%

Color #D8D798 in popluar number systems.

HEX D8 D7 98
Decimal 216 215 152
Binary 11011000 11010111 10011000
Octal 330 327 230

Shades and tints

Shades of #D8D798

#D8D798
(216,215,152)
#C5C48B
(197,196,139)
#B2B17E
(178,177,126)
#9F9E71
(159,158,113)
#8C8B64
(140,139,100)
#797857
(121,120,87)
#66654A
(102,101,74)
#53523D
(83,82,61)
#403F30
(64,63,48)
#2D2C23
(45,44,35)
#1A1916
(26,25,22)
#000000
(0,0,0)

Tints of #D8D798

#D8D798
(216,215,152)
#DBDAA1
(219,218,161)
#DEDDAA
(222,221,170)
#E1E0B3
(225,224,179)
#E4E3BC
(228,227,188)
#E7E6C5
(231,230,197)
#EAE9CE
(234,233,206)
#EDECD7
(237,236,215)
#F0EFE0
(240,239,224)
#F3F2E9
(243,242,233)
#F6F5F2
(246,245,242)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #D8D798 color. Also use rgb(216,215,152) instead hex code.

Text Font Color

.myTextColor { color: #D8D798; }

<p style="color:#D8D798">This sample text font color is #D8D798.</p>

This text font color is #D8D798.

Background Color

.myBgColor { background-color: #D8D798; }

<div style="background-color:#D8D798">Inner text</div>

This div background color is #D8D798.

Border color

.myBorderColor { border: 1px solid #D8D798; }

<div style="border:3px solid #D8D798">Div</div>

This div border color is #D8D798.

Opacity

.myOpacity80 { color: #D8D798; opacity: 0.8; }

<p style="color:#D8D798;opacity:0.8;">80%</p>

Text with #D8D798 color and opacity 100% | 80% | 50% | 30%.

Background with opacity value 100%.
Background with opacity value 80%.
Background with opacity value 50%.
Background with opacity value 30%.

Text shadow color

.textShadow {text-shadow: 3px 3px 1px #D8D798;}

<p style="text-shadow: 3px 3px 1px #D8D798">Text here.</p>

This text has shadow with #D8D798 color.


.textShadow {text-shadow: 3px 3px 1px #D8D798', 3px 3px 1px red;}

<p style="text-shadow: 3px 3px 1px #D8D798, 5px 5px 20px red">Text here.</p>

This text has shadow with #D8D798 primary color and red secondary color.


Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#D8D798, Direction=45, Strength=4)}

<p style="filter: Shadow(Color=#D8D798, Direction=45, Strength=4)">Text</p>

This text has shadow with #D8D798 and red colors in old Internet Explorer.

Div box shadow color

/* css code */
.divShadow
{
-moz-box-shadow: 1px 1px 3px 2px #D8D798;
-webkit-box-shadow: 1px 1px 3px 2px #D8D798;
box-shadow: 1px 1px 3px 2px #D8D798;
}

/* html code with inline style */
<div style="-moz-box-shadow: 1px 1px 3px 2px #D8D798; -webkit-box-shadow: 1px 1px 3px 2px #D8D798; box-shadow:1px 1px 3px 2px #D8D798;">
Div content here
</div>

This div box has shadow with color #D8D798.

Preview

Color preview on black background

This text has color #D8D798 on black background.


Color preview on white background

This text has color #D8D798 on white background.


Black color preview on #D8D798 background

This text has black color on #D8D798 background.


White color preview on #D8D798 background

This text has white color on #D8D798 background.


Related colors

Complementary color

Complementary color for #hex is #272867.


I love getcolorcode.com

Triadic colors

1 #98D8D7 and #D798D8 with #D8D798 are triadic colors.

2 #98D7D8 and #D7D898 with #D8D798 are triadic colors.