COLOR #512842

HEX: #512842 RGB: (81,40,66)

Color info

#512842 contains red, green and blue colors in about the same proportion. Web safe color of #512842 is #663333 (or #633).

RGB color model

#512842 color RGB value is (81,40,66).

RGB: (81,40,66) (32%, 16%, 26%)

RGB channels and saturation

R 81 of 255 = 32%
G 40 of 255 = 16%
B 66 of 255 = 26%

81
40
66

R + G + B ~ 25%. #512842 is quite dark color.

Portions of RGB colors in percentages

R + G + B = 81 + 40 + 66 = 187 (100%)
R 81 of 187 ~ 43.32%
G 40 of 187 ~ 21.39%
B 66 of 187 ~ 35.29'%

%43.32
%21.39
%35.29

CMYK color model

#512842 color CMYK value is (0,51,19,68).

  • cyan value is 0.00%
  • magenta value is 50.62%
  • yellow value is 18.52%
  • key color value is 68.24%

CMYK: (0,51,19,68)
C0M51Y19K68 (0%, 51%, 19%, 68%)
(0.00 / 0.51 / 0.19 / 0.68)

CMYK percentages

%0
%50.62
%18.52
%68.24

Codes

Color #512842 in popluar color models

51 28 42
RGB 81 40 66
HSL 322° 33.88% 23.73%
HSB/HSV 322° 50.62% 31.76%
CMYK 0.00% 50.62% 18.52%
68.24%

Color #512842 in popluar number systems.

HEX 51 28 42
Decimal 81 40 66
Binary 1010001 101000 1000010
Octal 121 50 102

Shades and tints

Shades of #512842

#512842
(81,40,66)
#4A253C
(74,37,60)
#432236
(67,34,54)
#3C1F30
(60,31,48)
#351C2A
(53,28,42)
#2E1924
(46,25,36)
#27161E
(39,22,30)
#201318
(32,19,24)
#191012
(25,16,18)
#120D0C
(18,13,12)
#0B0A06
(11,10,6)
#000000
(0,0,0)

Tints of #512842

#512842
(81,40,66)
#603B53
(96,59,83)
#6F4E64
(111,78,100)
#7E6175
(126,97,117)
#8D7486
(141,116,134)
#9C8797
(156,135,151)
#AB9AA8
(171,154,168)
#BAADB9
(186,173,185)
#C9C0CA
(201,192,202)
#D8D3DB
(216,211,219)
#E7E6EC
(231,230,236)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #512842 color. Also use rgb(81,40,66) instead hex code.

Text Font Color

.myTextColor { color: #512842; }

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

This text font color is #512842.

Background Color

.myBgColor { background-color: #512842; }

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

This div background color is #512842.

Border color

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

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

This div border color is #512842.

Opacity

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

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

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

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

This text has shadow with #512842 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #512842.

Preview

Color preview on black background

This text has color #512842 on black background.


Color preview on white background

This text has color #512842 on white background.


Black color preview on #512842 background

This text has black color on #512842 background.


White color preview on #512842 background

This text has white color on #512842 background.


Related colors

Complementary color

Complementary color for #hex is #AED7BD.


I love getcolorcode.com

Triadic colors

1 #425128 and #284251 with #512842 are triadic colors.

2 #422851 and #285142 with #512842 are triadic colors.