COLOR #502172

HEX: #502172 RGB: (80,33,114)

Color info

#502172 contains mainly red and blue colors. Web safe color of #502172 is #663366 (or #636).

RGB color model

#502172 color RGB value is (80,33,114).

RGB: (80,33,114) (31%, 13%, 45%)

RGB channels and saturation

R 80 of 255 = 31%
G 33 of 255 = 13%
B 114 of 255 = 45%

80
33
114

R + G + B ~ 30%. #502172 is quite dark color.

Portions of RGB colors in percentages

R + G + B = 80 + 33 + 114 = 227 (100%)
R 80 of 227 ~ 35.24%
G 33 of 227 ~ 14.54%
B 114 of 227 ~ 50.22'%

%35.24
%14.54
%50.22

CMYK color model

#502172 color CMYK value is (30,71,0,55).

  • cyan value is 29.82%
  • magenta value is 71.05%
  • yellow value is 0.00%
  • key color value is 55.29%

CMYK: (30,71,0,55)
C30M71Y0K55 (30%, 71%, 0%, 55%)
(0.30 / 0.71 / 0.00 / 0.55)

CMYK percentages

%29.82
%71.05
%0
%55.29

Codes

Color #502172 in popluar color models

50 21 72
RGB 80 33 114
HSL 275° 55.10% 28.82%
HSB/HSV 275° 71.05% 44.71%
CMYK 29.82% 71.05% 0.00%
55.29%

Color #502172 in popluar number systems.

HEX 50 21 72
Decimal 80 33 114
Binary 1010000 100001 1110010
Octal 120 41 162

Shades and tints

Shades of #502172

#502172
(80,33,114)
#491E68
(73,30,104)
#421B5E
(66,27,94)
#3B1854
(59,24,84)
#34154A
(52,21,74)
#2D1240
(45,18,64)
#260F36
(38,15,54)
#1F0C2C
(31,12,44)
#180922
(24,9,34)
#110618
(17,6,24)
#0A030E
(10,3,14)
#000000
(0,0,0)

Tints of #502172

#502172
(80,33,114)
#5F357E
(95,53,126)
#6E498A
(110,73,138)
#7D5D96
(125,93,150)
#8C71A2
(140,113,162)
#9B85AE
(155,133,174)
#AA99BA
(170,153,186)
#B9ADC6
(185,173,198)
#C8C1D2
(200,193,210)
#D7D5DE
(215,213,222)
#E6E9EA
(230,233,234)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #502172 color. Also use rgb(80,33,114) instead hex code.

Text Font Color

.myTextColor { color: #502172; }

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

This text font color is #502172.

Background Color

.myBgColor { background-color: #502172; }

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

This div background color is #502172.

Border color

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

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

This div border color is #502172.

Opacity

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

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

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

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

This text has shadow with #502172 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #502172.

Preview

Color preview on black background

This text has color #502172 on black background.


Color preview on white background

This text has color #502172 on white background.


Black color preview on #502172 background

This text has black color on #502172 background.


White color preview on #502172 background

This text has white color on #502172 background.


Related colors

Complementary color

Complementary color for #hex is #AFDE8D.


I love getcolorcode.com

Triadic colors

1 #725021 and #217250 with #502172 are triadic colors.

2 #722150 and #215072 with #502172 are triadic colors.