COLOR #512B8E

HEX: #512B8E
RGB: (81,43,142)

Color info

#512B8E contains mainly blue color. Web safe color of #512B8E is #663399 (or #639).

RGB color model

#512B8E color RGB value is (81,43,142).

  • red value is 81;
  • green value is 43;
  • blue value is 142.
RGB:
(81,43,142)
(32%,17%,56%)

RGB channels and saturation

R 81 of 255 = 32%
G 43 of 255 = 17%
B 142 of 255 = 56%

81
43
142

R + G + B ~ 35%. #512B8E is quite dark color.

Portions of RGB colors in percentages

R + G + B =
81 + 43 + 142 = 266 (100%)
R 81 of 266 ~ 30.45%
G 43 of 266 ~ 16.17%
B 142 of 266 ~ 53.38%

%30.45
%16.17
%53.38

CMYK color model

#512B8E color CMYK value is (43,70,0,44).

  • cyan value is 42.96%
  • magenta value is 69.72%
  • yellow value is 0.00%
  • key color value is 44.31%
CMYK:
(43,70,0,44)
C43M70Y0K44 
(43%,70%,0%,44%)
(0.43/0.70/0.00/0.44)	

CMYK percentages

%42.96
%69.72
%0
%44.31

Codes

Color #512B8E in popluar color models

512B8E
RGB8143142
HSL263°53.51%36.27%
HSB/HSV263°69.72%55.69%
CMYK42.96%69.72%0.00%
44.31%

Color #512B8E in popluar number systems.

HEX512B8E
Decimal8143142
Binary101000110101110001110
Octal12153216

Shades and tints

Shades of #512B8E

#512B8E
(81,43,142)
#4A2882
(74,40,130)
#432576
(67,37,118)
#3C226A
(60,34,106)
#351F5E
(53,31,94)
#2E1C52
(46,28,82)
#271946
(39,25,70)
#20163A
(32,22,58)
#19132E
(25,19,46)
#121022
(18,16,34)
#0B0D16
(11,13,22)
#000000
(0,0,0)

Tints of #512B8E

#512B8E
(81,43,142)
#603E98
(96,62,152)
#6F51A2
(111,81,162)
#7E64AC
(126,100,172)
#8D77B6
(141,119,182)
#9C8AC0
(156,138,192)
#AB9DCA
(171,157,202)
#BAB0D4
(186,176,212)
#C9C3DE
(201,195,222)
#D8D6E8
(216,214,232)
#E7E9F2
(231,233,242)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #512B8E color. Also use rgb(81,43,142) instead hex code.

Text Font Color

.myTextColor { color: #512B8E; }

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

This text font color is #512B8E.


Background Color

.myBgColor { background-color: #512B8E; }

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

This div background color is #512B8E.


Border color

.myBorderColor { border: 1px solid #512B8E; }

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

This div border color is #512B8E.


Opacity

.myOpacity80 { color: #512B8E; opacity: 0.8; }

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

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

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

This text has shadow with #512B8E color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #512B8E on black background.


Color preview on white background

This text has color #512B8E on white background.



Black color preview on #512B8E background

This text has black color on #512B8E background.


White color preview on #512B8E background

This text has white color on #512B8E background.