COLOR #510240

HEX: #510240
RGB: (81,2,64)

Color info

#510240 contains mainly red and blue colors. Web safe color of #510240 is #660033 (or #603).

RGB color model

#510240 color RGB value is (81,2,64).

  • red value is 81;
  • green value is 2;
  • blue value is 64.
RGB: (81,2,64) (32%,1%,25%)

RGB channels and saturation

R 81 of 255 = 32%
G 2 of 255 = 1%
B 64 of 255 = 25%

81
2
64

R + G + B ~ 19%. #510240 is dark color.

Portions of RGB colors in percentages

R + G + B =
81 + 2 + 64 = 147 (100%)
R 81 of 147 ~ 55.1%
G 2 of 147 ~ 1.36%
B 64 of 147 ~ 43.54%

%55.1
%43.54

CMYK color model

#510240 color CMYK value is (0,98,21,68).

  • cyan value is 0.00%
  • magenta value is 97.53%
  • yellow value is 20.99%
  • key color value is 68.24%
CMYK: (0,98,21,68) C0M98Y21K68 (0%,98%,21%,68%) (0.00/0.98/0.21/0.68)

CMYK percentages

%0
%97.53
%20.99
%68.24

Codes

Color #510240 in popluar color models

510240
RGB81264
HSL313°95.18%16.27%
HSB/HSV313°97.53%31.76%
CMYK0.00%97.53%20.99%
68.24%

Color #510240 in popluar number systems.

HEX510240
Decimal81264
Binary1010001101000000
Octal1212100

Shades and tints

Shades of #510240

#510240
(81,2,64)
#4A023B
(74,2,59)
#430236
(67,2,54)
#3C0231
(60,2,49)
#35022C
(53,2,44)
#2E0227
(46,2,39)
#270222
(39,2,34)
#20021D
(32,2,29)
#190218
(25,2,24)
#120213
(18,2,19)
#0B020E
(11,2,14)
#000000
(0,0,0)

Tints of #510240

#510240
(81,2,64)
#601951
(96,25,81)
#6F3062
(111,48,98)
#7E4773
(126,71,115)
#8D5E84
(141,94,132)
#9C7595
(156,117,149)
#AB8CA6
(171,140,166)
#BAA3B7
(186,163,183)
#C9BAC8
(201,186,200)
#D8D1D9
(216,209,217)
#E7E8EA
(231,232,234)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #510240 color. Also use rgb(81,2,64) instead hex code.

Text Font Color

.myTextColor { color: #510240; }

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

This text font color is #510240.


Background Color

.myBgColor { background-color: #510240; }

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

This div background color is #510240.


Border color

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

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

This div border color is #510240.


Opacity

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

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

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

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

This text has shadow with #510240 color.

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

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

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


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

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

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


Div box shadow color

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

Preview

Color preview on black background

This text has color #510240 on black background.


Color preview on white background

This text has color #510240 on white background.



Black color preview on #510240 background

This text has black color on #510240 background.


White color preview on #510240 background

This text has white color on #510240 background.