In the RGB color space, #040402 is composed of 1.5686% red, 1.5686% green, and 0.7843% blue.
In the CMYK color space, #040402 is composed of 0% cyan, 0% magenta, 50.32% yellow, and 98.43% black,
It has a hue angle of 60 degrees, a saturation of 33.62%, and a lightness of 1.18%.
The closest websafe color is #000000.
The hexadecimal color #040402 has RGB values of R:4, G:4, B:2 and CMYK values of C:0, M:0, Y:50.32, K:98.43. It has a decimal value of 263170.
Hexadecimal | #040402 | #040402 |
RGB Decimal | 4, 4, 2 | rgb(4, 4, 2) |
RGB Percent | 1.5686, 1.5686, 0.7843 | rgb(1.5686%, 1.5686%, 0.7843%) |
RGB Proportion | 0.0157, 0.0157, 0.0078 | rgb(0.0157, 0.0157, 0.0078) |
CMYK | 0, 0, 50.32, 98.43 | |
HSL | 60ยบ, 33.62, 1.18 | hsl(60, 33.62%, 1.18%) |
Websafe | 000000 | #000000 |
XYZ | 0.104, 0.117, 0.074 | |
Yxy | 0.117, 0.353, 0.397 | |
CIE-LAB | 1.057, -0.295, 0.764 | |
CIE-LCH | 1.057, 0.819, 111.113 | |
CIE-LUV | 1.057, 0.028, 0.518 | |
Hunter-Lab | 3.421, -0.559, 1.112 |
Colors that go well with #040402.
Common HTML and CSS shortcodes for #040402.
<div style="color: #040402;">The quick brown fox jumps over the lazy dog.</div>
<div style="background-color: #040402;">The quick brown fox jumps over the lazy dog.</div>
<div style="border: 1px solid #040402;">The quick brown fox jumps over the lazy dog.</div>
Linear gradient from #040402 to transparent.
<div style="background: linear-gradient(#040402, rgba(255, 255, 255, 0));">The quick brown fox jumps over the lazy dog.</div>
Radial gradient from #040402 to transparent.
<div style="background: radial-gradient(#040402, rgba(255, 255, 255, 0));">The quick brown fox jumps over the lazy dog.</div>
Linear gradient from #040402 to #FBFBFD.
<div style="background: linear-gradient(#040402, #FBFBFD);">The quick brown fox jumps over the lazy dog.</div>
Radial gradient from #040402 to #FBFBFD.
<div style="background: radial-gradient(#040402, #FBFBFD);">The quick brown fox jumps over the lazy dog.</div>
Handy CSS code and shortcuts.
.text { color: #040402; }
.background { background-color: #040402; }
.border { border: 1px solid #040402; }
.linear-gradient { background: linear-gradient(#faf310, rgba(255, 255, 255, 0)); }
.radial-gradient { background: radial-gradient(#faf310, rgba(255, 255, 255, 0)); }
Shades are created by adding black to the color, while a tint is created by mixing white. The darkest shade in this example is #000000 while the lightest tint is #FAFAFA.