COLOR #512D8D

HEX: #512D8D
RGB: (81,45,141)

Color info

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

RGB color model

#512D8D color RGB value is (81,45,141).

  • red value is 81;
  • green value is 45;
  • blue value is 141.
RGB:
(81,45,141)
(32%,18%,55%)

RGB channels and saturation

R 81 of 255 = 32%
G 45 of 255 = 18%
B 141 of 255 = 55%

81
45
141

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

Portions of RGB colors in percentages

R + G + B =
81 + 45 + 141 = 267 (100%)
R 81 of 267 ~ 30.34%
G 45 of 267 ~ 16.85%
B 141 of 267 ~ 52.81%

%30.34
%16.85
%52.81

CMYK color model

#512D8D color CMYK value is (43,68,0,45).

  • cyan value is 42.55%
  • magenta value is 68.09%
  • yellow value is 0.00%
  • key color value is 44.71%
CMYK:
(43,68,0,45)
C43M68Y0K45 
(43%,68%,0%,45%)
(0.43/0.68/0.00/0.45)	

CMYK percentages

%42.55
%68.09
%0
%44.71

Codes

Color #512D8D in popluar color models

512D8D
RGB8145141
HSL263°51.61%36.47%
HSB/HSV263°68.09%55.29%
CMYK42.55%68.09%0.00%
44.71%

Color #512D8D in popluar number systems.

HEX512D8D
Decimal8145141
Binary101000110110110001101
Octal12155215

Shades and tints

Shades of #512D8D

#512D8D
(81,45,141)
#4A2981
(74,41,129)
#432575
(67,37,117)
#3C2169
(60,33,105)
#351D5D
(53,29,93)
#2E1951
(46,25,81)
#271545
(39,21,69)
#201139
(32,17,57)
#190D2D
(25,13,45)
#120921
(18,9,33)
#0B0515
(11,5,21)
#000000
(0,0,0)

Tints of #512D8D

#512D8D
(81,45,141)
#604097
(96,64,151)
#6F53A1
(111,83,161)
#7E66AB
(126,102,171)
#8D79B5
(141,121,181)
#9C8CBF
(156,140,191)
#AB9FC9
(171,159,201)
#BAB2D3
(186,178,211)
#C9C5DD
(201,197,221)
#D8D8E7
(216,216,231)
#E7EBF1
(231,235,241)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #512D8D color. Also use rgb(81,45,141) instead hex code.

Text Font Color

.myTextColor { color: #512D8D; }

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

This text font color is #512D8D.


Background Color

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

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

This div background color is #512D8D.


Border color

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

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

This div border color is #512D8D.


Opacity

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

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

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

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

This text has shadow with #512D8D color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #512D8D on black background.


Color preview on white background

This text has color #512D8D on white background.



Black color preview on #512D8D background

This text has black color on #512D8D background.


White color preview on #512D8D background

This text has white color on #512D8D background.