In a RGB color space, #ff0040 hex color is composed of 100% red, 0% green and 25.1% blue. Whereas in a CMYK color space, it is composed of 0% cyan, 100% magenta, 74.9% yellow and 0% black. It has a hue angle of 344.9 degrees, a saturation of 100% and a lightness of 50%. #ff0040 color hex could be obtained by blending #ff0080 with #ff0000. Closest websafe color is: #ff0033.
The hexadecimal color #ff0040 has RGB values of R:255, G:0, B:64 and CMYK values of C:0, M:1, Y:0.75, K:0. Its decimal value is 16711744.
Hex triplet | ff0040 | #ff0040 |
RGB Decimal | 255, 0, 64 | rgb(255,0,64) |
RGB Percent | 100, 0, 25.1 | rgb(100%,0%,25.1%) |
CMYK | 0, 100, 74.9, 0 | |
HSL | 344.9°, 100, 50 | hsl(344.9,100%,50%) |
HSV(HSB) | 344.9°, 100, 100 | |
Web Safe | ff0033 | #f03 |
XYZ | 42.165, 21.63, 6.803 |
xyY | 0.597, 0.306, 21.63 |
CIE-LAB | 53.632, 81.198, 40.694 |
CIE-LCH | 53.632, 90.824, 26.619 |
CIE-LUV | 53.632, 165.902, 24.162 |
Hunter-Lab | 46.508, 80.443, 23.883 |
Binary | 11111111, 00000000, 01000000 |
Below, you can see some colors close to #ff0040. 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 #ff0040.
<span style="color:#ff0040">Text here</span>
This paragraph has a background color of #ff0040.
<p style="background-color:#ff0040;">Content here</p>
This element has a border color of #ff0040.
<div style="border:1px #ff0040;">Content here</div>
.text {color:#ff0040;}
.background {background-color:#ff0040;}
.border {border:1px solid #ff0040;}
.text-shadow {border:1px solid #ff0040;}
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 #ffeaef is the lightest one.
A tone is produced by adding gray to any pure hue. In this case, #807f7f is the less saturated color, while #f40b45 is the most saturated one.