COLOR #5F51B1

HEX: #5F51B1 RGB: (95,81,177)

Color info

#5F51B1 contains mainly blue color. Web safe color of #5F51B1 is #666699 (or #669).

RGB color model

#5F51B1 color RGB value is (95,81,177).

RGB: (95,81,177) (37%, 32%, 69%)

RGB channels and saturation

R 95 of 255 = 37%
G 81 of 255 = 32%
B 177 of 255 = 69%

95
81
177

R + G + B ~ 46%. #5F51B1 is middle color (not dark and not light).

Portions of RGB colors in percentages

R + G + B = 95 + 81 + 177 = 353 (100%)
R 95 of 353 ~ 26.91%
G 81 of 353 ~ 22.95%
B 177 of 353 ~ 50.14'%

%26.91
%22.95
%50.14

CMYK color model

#5F51B1 color CMYK value is (46,54,0,31).

  • cyan value is 46.33%
  • magenta value is 54.24%
  • yellow value is 0.00%
  • key color value is 30.59%

CMYK: (46,54,0,31)
C46M54Y0K31 (46%, 54%, 0%, 31%)
(0.46 / 0.54 / 0.00 / 0.31)

CMYK percentages

%46.33
%54.24
%0
%30.59

Codes

Color #5F51B1 in popluar color models

5F 51 B1
RGB 95 81 177
HSL 249° 38.10% 50.59%
HSB/HSV 249° 54.24% 69.41%
CMYK 46.33% 54.24% 0.00%
30.59%

Color #5F51B1 in popluar number systems.

HEX 5F 51 B1
Decimal 95 81 177
Binary 1011111 1010001 10110001
Octal 137 121 261

Shades and tints

Shades of #5F51B1

#5F51B1
(95,81,177)
#574AA1
(87,74,161)
#4F4391
(79,67,145)
#473C81
(71,60,129)
#3F3571
(63,53,113)
#372E61
(55,46,97)
#2F2751
(47,39,81)
#272041
(39,32,65)
#1F1931
(31,25,49)
#171221
(23,18,33)
#0F0B11
(15,11,17)
#000000
(0,0,0)

Tints of #5F51B1

#5F51B1
(95,81,177)
#6D60B8
(109,96,184)
#7B6FBF
(123,111,191)
#897EC6
(137,126,198)
#978DCD
(151,141,205)
#A59CD4
(165,156,212)
#B3ABDB
(179,171,219)
#C1BAE2
(193,186,226)
#CFC9E9
(207,201,233)
#DDD8F0
(221,216,240)
#EBE7F7
(235,231,247)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #5F51B1 color. Also use rgb(95,81,177) instead hex code.

Text Font Color

.myTextColor { color: #5F51B1; }

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

This text font color is #5F51B1.

Background Color

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

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

This div background color is #5F51B1.

Border color

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

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

This div border color is #5F51B1.

Opacity

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

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

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

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

This text has shadow with #5F51B1 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #5F51B1.

Preview

Color preview on black background

This text has color #5F51B1 on black background.


Color preview on white background

This text has color #5F51B1 on white background.


Black color preview on #5F51B1 background

This text has black color on #5F51B1 background.


White color preview on #5F51B1 background

This text has white color on #5F51B1 background.


Related colors

Complementary color

Complementary color for #hex is #A0AE4E.


I love getcolorcode.com

Triadic colors

1 #B15F51 and #51B15F with #5F51B1 are triadic colors.

2 #B1515F and #515FB1 with #5F51B1 are triadic colors.