In a RGB color space, #400040 hex color is composed of 25.1% red, 0% green and 25.1% blue. Whereas in a CMYK color space, it is composed of 0% cyan, 100% magenta, 0% yellow and 74.9% black. It has a hue angle of 300 degrees, a saturation of 100% and a lightness of 12.5%. #400040 color hex could be obtained by blending #800080 with #000000. Closest websafe color is: #330033.
The hexadecimal color #400040 has RGB values of R:64, G:0, B:64 and CMYK values of C:0, M:1, Y:0, K:0.75. Its decimal value is 4194368.
Hex triplet | 400040 | #400040 |
RGB Decimal | 64, 0, 64 | rgb(64,0,64) |
RGB Percent | 25.1, 0, 25.1 | rgb(25.1%,0%,25.1%) |
CMYK | 0, 100, 0, 74.9 | |
HSL | 300°, 100, 12.5 | hsl(300,100%,12.5%) |
HSV(HSB) | 300°, 100, 25.1 | |
Web Safe | 330033 | #303 |
XYZ | 3.04, 1.46, 4.972 |
xyY | 0.321, 0.154, 1.46 |
CIE-LAB | 12.352, 36.501, -22.603 |
CIE-LCH | 12.352, 42.933, 328.233 |
CIE-LUV | 12.352, 17.217, -22.262 |
Hunter-Lab | 12.084, 23.757, -15.938 |
Binary | 01000000, 00000000, 01000000 |
Below, you can see some colors close to #400040. Having a set of related colors can be useful if you need an inspirational alternative to your original color choice.
This text has a font color of #400040.
<span style="color:#400040">Text here</span>
This paragraph has a background color of #400040.
<p style="background-color:#400040;">Content here</p>
This element has a border color of #400040.
<div style="border:1px #400040;">Content here</div>
.text {color:#400040;}
.background {background-color:#400040;}
.border {border:1px solid #400040;}
.text-shadow {border:1px solid #400040;}
A shade is achieved by adding black to any pure hue, while a tint is created by mixing white to any pure color. In this example, #000000 is the darkest color, while #ffeaff is the lightest one.
A tone is produced by adding gray to any pure hue. In this case, #202020 is the less saturated color, while #3d033d is the most saturated one.