COLOR #512970

HEX: #512970
RGB: (81,41,112)

Color info

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

RGB color model

#512970 color RGB value is (81,41,112).

  • red value is 81;
  • green value is 41;
  • blue value is 112.
RGB:
(81,41,112)
(32%,16%,44%)

RGB channels and saturation

R 81 of 255 = 32%
G 41 of 255 = 16%
B 112 of 255 = 44%

81
41
112

R + G + B ~ 31%. #512970 is quite dark color.

Portions of RGB colors in percentages

R + G + B =
81 + 41 + 112 = 234 (100%)
R 81 of 234 ~ 34.62%
G 41 of 234 ~ 17.52%
B 112 of 234 ~ 47.86%

%34.62
%17.52
%47.86

CMYK color model

#512970 color CMYK value is (28,63,0,56).

  • cyan value is 27.68%
  • magenta value is 63.39%
  • yellow value is 0.00%
  • key color value is 56.08%
CMYK:
(28,63,0,56)
C28M63Y0K56 
(28%,63%,0%,56%)
(0.28/0.63/0.00/0.56)	

CMYK percentages

%27.68
%63.39
%0
%56.08

Codes

Color #512970 in popluar color models

512970
RGB8141112
HSL274°46.41%30.00%
HSB/HSV274°63.39%43.92%
CMYK27.68%63.39%0.00%
56.08%

Color #512970 in popluar number systems.

HEX512970
Decimal8141112
Binary10100011010011110000
Octal12151160

Shades and tints

Shades of #512970

#512970
(81,41,112)
#4A2666
(74,38,102)
#43235C
(67,35,92)
#3C2052
(60,32,82)
#351D48
(53,29,72)
#2E1A3E
(46,26,62)
#271734
(39,23,52)
#20142A
(32,20,42)
#191120
(25,17,32)
#120E16
(18,14,22)
#0B0B0C
(11,11,12)
#000000
(0,0,0)

Tints of #512970

#512970
(81,41,112)
#603C7D
(96,60,125)
#6F4F8A
(111,79,138)
#7E6297
(126,98,151)
#8D75A4
(141,117,164)
#9C88B1
(156,136,177)
#AB9BBE
(171,155,190)
#BAAECB
(186,174,203)
#C9C1D8
(201,193,216)
#D8D4E5
(216,212,229)
#E7E7F2
(231,231,242)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #512970; }

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

This text font color is #512970.


Background Color

.myBgColor { background-color: #512970; }

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

This div background color is #512970.


Border color

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

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

This div border color is #512970.


Opacity

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

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

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

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

This text has shadow with #512970 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #512970 on black background.


Color preview on white background

This text has color #512970 on white background.



Black color preview on #512970 background

This text has black color on #512970 background.


White color preview on #512970 background

This text has white color on #512970 background.