Toolman

#FF0040 color

#FF0040#FF0040

#FF0040 is a medium, vivid red, closest to the CSS named color red (#FF0000).

Color values

HEX#FF0040
RGBrgb(255, 0, 64)
HSLhsl(345, 100%, 50%)
CMYKcmyk(0%, 100%, 75%, 0%)
Decimal16711744
CSScolor: #FF0040;
Android0xFFFF0040
SwiftUIColor(red: 1.000, green: 0.000, blue: 0.251, alpha: 1)

Accessibility and contrast

White text on #FF00403.94:1 — AA fail · AA large pass · AAA fail
Black text on #FF00405.33:1 — AA pass · AA large pass · AAA fail
Recommended text colorblack

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.

95%
85%
75%
65%
55%
45%
35%
25%
15%

Colors that go with #FF0040

Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.

Complementary
Triadic +120°
Triadic +240°
Analogous −30°
Analogous +30°
Split −150°
Split +150°

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.

Convert any color → · Browse all colors