COLOR #5A3157

HEX: #5A3157 RGB: (90,49,87)

Color info

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

RGB color model

#5A3157 color RGB value is (90,49,87).

RGB: (90,49,87) (35%, 19%, 34%)

RGB channels and saturation

R 90 of 255 = 35%
G 49 of 255 = 19%
B 87 of 255 = 34%

90
49
87

R + G + B ~ 29%. #5A3157 is quite dark color.

Portions of RGB colors in percentages

R + G + B = 90 + 49 + 87 = 226 (100%)
R 90 of 226 ~ 39.82%
G 49 of 226 ~ 21.68%
B 87 of 226 ~ 38.5'%

%39.82
%21.68
%38.5

CMYK color model

#5A3157 color CMYK value is (0,46,3,65).

  • cyan value is 0.00%
  • magenta value is 45.56%
  • yellow value is 3.33%
  • key color value is 64.71%

CMYK: (0,46,3,65)
C0M46Y3K65 (0%, 46%, 3%, 65%)
(0.00 / 0.46 / 0.03 / 0.65)

CMYK percentages

%0
%45.56
%3.33
%64.71

Codes

Color #5A3157 in popluar color models

5A 31 57
RGB 90 49 87
HSL 304° 29.50% 27.25%
HSB/HSV 304° 45.56% 35.29%
CMYK 0.00% 45.56% 3.33%
64.71%

Color #5A3157 in popluar number systems.

HEX 5A 31 57
Decimal 90 49 87
Binary 1011010 110001 1010111
Octal 132 61 127

Shades and tints

Shades of #5A3157

#5A3157
(90,49,87)
#522D50
(82,45,80)
#4A2949
(74,41,73)
#422542
(66,37,66)
#3A213B
(58,33,59)
#321D34
(50,29,52)
#2A192D
(42,25,45)
#221526
(34,21,38)
#1A111F
(26,17,31)
#120D18
(18,13,24)
#0A0911
(10,9,17)
#000000
(0,0,0)

Tints of #5A3157

#5A3157
(90,49,87)
#694366
(105,67,102)
#785575
(120,85,117)
#876784
(135,103,132)
#967993
(150,121,147)
#A58BA2
(165,139,162)
#B49DB1
(180,157,177)
#C3AFC0
(195,175,192)
#D2C1CF
(210,193,207)
#E1D3DE
(225,211,222)
#F0E5ED
(240,229,237)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #5A3157 color. Also use rgb(90,49,87) instead hex code.

Text Font Color

.myTextColor { color: #5A3157; }

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

This text font color is #5A3157.

Background Color

.myBgColor { background-color: #5A3157; }

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

This div background color is #5A3157.

Border color

.myBorderColor { border: 1px solid #5A3157; }

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

This div border color is #5A3157.

Opacity

.myOpacity80 { color: #5A3157; opacity: 0.8; }

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

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

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

This text has shadow with #5A3157 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #5A3157.

Preview

Color preview on black background

This text has color #5A3157 on black background.


Color preview on white background

This text has color #5A3157 on white background.


Black color preview on #5A3157 background

This text has black color on #5A3157 background.


White color preview on #5A3157 background

This text has white color on #5A3157 background.


Related colors

Complementary color

Complementary color for #hex is #A5CEA8.


I love getcolorcode.com

Triadic colors

1 #575A31 and #31575A with #5A3157 are triadic colors.

2 #57315A and #315A57 with #5A3157 are triadic colors.