COLOR #AFAF51

HEX: #AFAF51 RGB: (175,175,81)

Color info

#AFAF51 contains mainly red and green colors. Web safe color of #AFAF51 is #999966 (or #996).

RGB color model

#AFAF51 color RGB value is (175,175,81).

RGB: (175,175,81) (69%, 69%, 32%)

RGB channels and saturation

R 175 of 255 = 69%
G 175 of 255 = 69%
B 81 of 255 = 32%

175
175
81

R + G + B ~ 57%. #AFAF51 is middle color (not dark and not light).

Portions of RGB colors in percentages

R + G + B = 175 + 175 + 81 = 431 (100%)
R 175 of 431 ~ 40.6%
G 175 of 431 ~ 40.6%
B 81 of 431 ~ 18.79'%

%40.6
%40.6
%18.79

CMYK color model

#AFAF51 color CMYK value is (0,0,54,31).

  • cyan value is 0.00%
  • magenta value is 0.00%
  • yellow value is 53.71%
  • key color value is 31.37%

CMYK: (0,0,54,31)
C0M0Y54K31 (0%, 0%, 54%, 31%)
(0.00 / 0.00 / 0.54 / 0.31)

CMYK percentages

%0
%0
%53.71
%31.37

Codes

Color #AFAF51 in popluar color models

AF AF 51
RGB 175 175 81
HSL 60° 37.01% 50.20%
HSB/HSV 60° 53.71% 68.63%
CMYK 0.00% 0.00% 53.71%
31.37%

Color #AFAF51 in popluar number systems.

HEX AF AF 51
Decimal 175 175 81
Binary 10101111 10101111 1010001
Octal 257 257 121

Shades and tints

Shades of #AFAF51

#AFAF51
(175,175,81)
#A0A04A
(160,160,74)
#919143
(145,145,67)
#82823C
(130,130,60)
#737335
(115,115,53)
#64642E
(100,100,46)
#555527
(85,85,39)
#464620
(70,70,32)
#373719
(55,55,25)
#282812
(40,40,18)
#19190B
(25,25,11)
#000000
(0,0,0)

Tints of #AFAF51

#AFAF51
(175,175,81)
#B6B660
(182,182,96)
#BDBD6F
(189,189,111)
#C4C47E
(196,196,126)
#CBCB8D
(203,203,141)
#D2D29C
(210,210,156)
#D9D9AB
(217,217,171)
#E0E0BA
(224,224,186)
#E7E7C9
(231,231,201)
#EEEED8
(238,238,216)
#F5F5E7
(245,245,231)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #AFAF51 color. Also use rgb(175,175,81) instead hex code.

Text Font Color

.myTextColor { color: #AFAF51; }

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

This text font color is #AFAF51.

Background Color

.myBgColor { background-color: #AFAF51; }

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

This div background color is #AFAF51.

Border color

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

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

This div border color is #AFAF51.

Opacity

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

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

Text with #AFAF51 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 #AFAF51;}

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

This text has shadow with #AFAF51 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #AFAF51.

Preview

Color preview on black background

This text has color #AFAF51 on black background.


Color preview on white background

This text has color #AFAF51 on white background.


Black color preview on #AFAF51 background

This text has black color on #AFAF51 background.


White color preview on #AFAF51 background

This text has white color on #AFAF51 background.


Related colors

Complementary color

Complementary color for #hex is #5050AE.


I love getcolorcode.com