#FF0040 color
#FF0040 is a medium, vivid red, closest to the CSS named color red (#FF0000).
Color values
| HEX | #FF0040 |
| RGB | rgb(255, 0, 64) |
| HSL | hsl(345, 100%, 50%) |
| CMYK | cmyk(0%, 100%, 75%, 0%) |
| Decimal | 16711744 |
| CSS | color: #FF0040; |
| Android | 0xFFFF0040 |
| Swift | UIColor(red: 1.000, green: 0.000, blue: 0.251, alpha: 1) |
Accessibility and contrast
| White text on #FF0040 | 3.94:1 — AA fail · AA large pass · AAA fail |
| Black text on #FF0040 | 5.33:1 — AA pass · AA large pass · AAA fail |
| Recommended text color | black |
WCAG 2.1 asks for at least 4.5:1 for body text and 3:1 for large text (18 pt, or 14 pt bold).
Tints and shades of #FF0040
Each swatch keeps the hue and saturation of #FF0040 and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #FF0040
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #FF0040 in code
/* CSS */
.element { color: #FF0040; background-color: #FF0040; }
.element { color: rgb(255 0 64); }
.element { color: hsl(345 100% 50%); }
/* Tailwind arbitrary value */
<div class="bg-[#FF0040] text-black">
/* SCSS variable */
$brand: #FF0040;
Frequently asked questions
What color is #FF0040?
#FF0040 is a medium, vivid red. Its hue sits at 345° on the color wheel, with 100% saturation and 50% lightness.
What is #FF0040 in RGB?
#FF0040 converts to rgb(255, 0, 64) — 255 red, 0 green and 64 blue.
What is #FF0040 in CMYK?
Approximately cmyk(0%, 100%, 75%, 0%). Print output depends on the ICC profile of the press and paper, so treat this as a starting point rather than an exact match.
Should text on #FF0040 be white or black?
Black gives the better contrast ratio (5.33:1 versus 3.94:1).
What is the complementary color of #FF0040?
#00FFBF — the hue directly opposite #FF0040 on the color wheel.