COLOR #512A51

HEX: #512A51
RGB: (81,42,81)

Color info

#512A51 contains red, green and blue colors in about the same proportion. Web safe color of #512A51 is #663366 (or #636).

RGB color model

#512A51 color RGB value is (81,42,81).

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

RGB channels and saturation

R 81 of 255 = 32%
G 42 of 255 = 16%
B 81 of 255 = 32%

81
42
81

R + G + B ~ 27%. #512A51 is quite dark color.

Portions of RGB colors in percentages

R + G + B =
81 + 42 + 81 = 204 (100%)
R 81 of 204 ~ 39.71%
G 42 of 204 ~ 20.59%
B 81 of 204 ~ 39.71%

%39.71
%20.59
%39.71

CMYK color model

#512A51 color CMYK value is (0,48,0,68).

  • cyan value is 0.00%
  • magenta value is 48.15%
  • yellow value is 0.00%
  • key color value is 68.24%
CMYK:
(0,48,0,68)
C0M48Y0K68 
(0%,48%,0%,68%)
(0.00/0.48/0.00/0.68)	

CMYK percentages

%0
%48.15
%0
%68.24

Codes

Color #512A51 in popluar color models

512A51
RGB814281
HSL300°31.71%24.12%
HSB/HSV300°48.15%31.76%
CMYK0.00%48.15%0.00%
68.24%

Color #512A51 in popluar number systems.

HEX512A51
Decimal814281
Binary10100011010101010001
Octal12152121

Shades and tints

Shades of #512A51

#512A51
(81,42,81)
#4A274A
(74,39,74)
#432443
(67,36,67)
#3C213C
(60,33,60)
#351E35
(53,30,53)
#2E1B2E
(46,27,46)
#271827
(39,24,39)
#201520
(32,21,32)
#191219
(25,18,25)
#120F12
(18,15,18)
#0B0C0B
(11,12,11)
#000000
(0,0,0)

Tints of #512A51

#512A51
(81,42,81)
#603D60
(96,61,96)
#6F506F
(111,80,111)
#7E637E
(126,99,126)
#8D768D
(141,118,141)
#9C899C
(156,137,156)
#AB9CAB
(171,156,171)
#BAAFBA
(186,175,186)
#C9C2C9
(201,194,201)
#D8D5D8
(216,213,216)
#E7E8E7
(231,232,231)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #512A51; }

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

This text font color is #512A51.


Background Color

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

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

This div background color is #512A51.


Border color

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

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

This div border color is #512A51.


Opacity

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

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

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

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

This text has shadow with #512A51 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #512A51 on black background.


Color preview on white background

This text has color #512A51 on white background.



Black color preview on #512A51 background

This text has black color on #512A51 background.


White color preview on #512A51 background

This text has white color on #512A51 background.