COLOR #512858

HEX: #512858 RGB: (81,40,88)

Color info

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

RGB color model

#512858 color RGB value is (81,40,88).

RGB: (81,40,88) (32%, 16%, 35%)

RGB channels and saturation

R 81 of 255 = 32%
G 40 of 255 = 16%
B 88 of 255 = 35%

81
40
88

R + G + B ~ 28%. #512858 is quite dark color.

Portions of RGB colors in percentages

R + G + B = 81 + 40 + 88 = 209 (100%)
R 81 of 209 ~ 38.76%
G 40 of 209 ~ 19.14%
B 88 of 209 ~ 42.11'%

%38.76
%19.14
%42.11

CMYK color model

#512858 color CMYK value is (8,55,0,65).

  • cyan value is 7.95%
  • magenta value is 54.55%
  • yellow value is 0.00%
  • key color value is 65.49%

CMYK: (8,55,0,65)
C8M55Y0K65 (8%, 55%, 0%, 65%)
(0.08 / 0.55 / 0.00 / 0.65)

CMYK percentages

%7.95
%54.55
%0
%65.49

Codes

Color #512858 in popluar color models

51 28 58
RGB 81 40 88
HSL 291° 37.50% 25.10%
HSB/HSV 291° 54.55% 34.51%
CMYK 7.95% 54.55% 0.00%
65.49%

Color #512858 in popluar number systems.

HEX 51 28 58
Decimal 81 40 88
Binary 1010001 101000 1011000
Octal 121 50 130

Shades and tints

Shades of #512858

#512858
(81,40,88)
#4A2550
(74,37,80)
#432248
(67,34,72)
#3C1F40
(60,31,64)
#351C38
(53,28,56)
#2E1930
(46,25,48)
#271628
(39,22,40)
#201320
(32,19,32)
#191018
(25,16,24)
#120D10
(18,13,16)
#0B0A08
(11,10,8)
#000000
(0,0,0)

Tints of #512858

#512858
(81,40,88)
#603B67
(96,59,103)
#6F4E76
(111,78,118)
#7E6185
(126,97,133)
#8D7494
(141,116,148)
#9C87A3
(156,135,163)
#AB9AB2
(171,154,178)
#BAADC1
(186,173,193)
#C9C0D0
(201,192,208)
#D8D3DF
(216,211,223)
#E7E6EE
(231,230,238)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #512858; }

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

This text font color is #512858.

Background Color

.myBgColor { background-color: #512858; }

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

This div background color is #512858.

Border color

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

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

This div border color is #512858.

Opacity

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

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

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

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

This text has shadow with #512858 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #512858.

Preview

Color preview on black background

This text has color #512858 on black background.


Color preview on white background

This text has color #512858 on white background.


Black color preview on #512858 background

This text has black color on #512858 background.


White color preview on #512858 background

This text has white color on #512858 background.


Related colors

Complementary color

Complementary color for #hex is #AED7A7.


I love getcolorcode.com

Triadic colors

1 #585128 and #285851 with #512858 are triadic colors.

2 #582851 and #285158 with #512858 are triadic colors.