color details

Color Details
#402852 Color Hex

#402852 color RGB value is (4, 2, 133).
#402852 hex color red value is 4, green value is 2, and blue value is 133.
Cylindrical-coordinate representations (HSL) of color #402852 hue: 240.92, saturation: 0.97 and lightness: 0.26.

The process color (four-color CMYK) of #402852 color hex is 0.00, 0.28, 0.40, 0.03. Web safe color of #402852 is #ff9999. Color #402852 contains mainly RED.

Color Spaces
Color spaces of #402852Value
RGB64, 40, 82
HSL0.76, 0.34, 0.24
HSV274°, 51°, 32°
XYZ4.4, 3.22, 8.37
Base Numbers
Base Red Green Blue
Binary 1000000 101000 1010010
Octal 100 50 122
Decimal 64 40 82
Hex 40 28 52

RGB Percentages for Color #402852

34.41%
21.51%
44.09%

CMYK Percentages of the Color #402852

21.95%
51.22%
67.84%
CSS Codes for Color #402852
.mybgColor {background-color: #402852;}
.myforeColor {color: #402852;}
.myborderColor {border:3px solid #402852;}
Text Font Color #402852

<p style="color:#402852">Text here</p>

This sample text is styled with the font color #402852. It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here,

Background Color #402852

<div style="background-color:#402852">Div content here</div>

The background color of this div is #402852
Border Color #402852

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

The border color of this div is #402852
Css3 Examples
            .textShadowRgb {
                text-shadow: 4px 4px 2px rgba(64, 40, 82, 0.8);            }
            .textShadowHex {
                text-shadow: 4px 4px 2px #402852;            }
            .divShadow {
                -moz-box-shadow: 1px 1px 3px #402852;
-webkit-box-shadow: 1px 1px 3px #402852;
box-shadow: 1px 1px 3px #402852;            }
            
Text Shadow Using RGB Values

<p style="text-shadow: 4px 4px 2px rgba(64, 40, 82, 0.8);">Text here</p>

This text has a shadow with RGB values.

Text Shadow Using Hex Values

<p style="text-shadow: 4px 4px 2px #402852;">Text here</p>

This text has a shadow with hexadecimal (hex) values.

Shadow Div Box

<div style="-moz-box-shadow: 1px 1px 3px #402852; -webkit-box-shadow: 1px 1px 3px #402852; box-shadow: 1px 1px 3px #402852;">Div content here</div>

This div box has a shadow with a specified color. #402852

Scroll to Top