What is hex #FF407F color?
In professional design frameworks, this hue is considered a highly vibrant and energetic tone. It is perfect for drawing attention to critical elements like call-to-action buttons, highlights, or modern branding.
From a technical standpoint, this color is composed of 100% red, 25% green and 50% blue, resulting in rgb(255, 64, 127) and hsl(340, 100%, 63%).
For print media and manufacturing layout, the CMYK equivalent is (0%, 75%, 50%, 0%).
In the HSV/HSB scale, #FF407F features a hue of 340°, 75% saturation, and 100% brightness.
Hex #FF407F Color Codes & Conversions
| Closest Named Color | Cerise Pink (#EC3B83) |
| Hex Code | #FF407F |
| Hex8 (RGBA Hex) | #FF407FFF |
| RGB (CSS) | rgb(255, 64, 127) |
| RGBA (CSS) | rgba(255, 64, 127, 1) |
| HSL (CSS) | hsl(340, 100%, 63%) |
| HSLA (CSS) | hsla(340, 100%, 63%, 1) |
| HSV / HSB | (340°, 75%, 100%) |
| CMYK Values | (0%, 75%, 50%, 0%) |
| OKLCH (Modern CSS) | oklch(67.2% 0.228 6.4) |
| CIE-LAB (D65) | 58.48, 74.11, 9.79 |
| CIE XYZ | 46.91, 26.47, 22.71 |
| Decimal / Binary |
16728191
11111111 01000000 01111111 |
Closest Standards & Equivalents
| Closest Web Safe | #FF3366 |
| Inverse Color | #00BF80 |
| Complementary Color | #40FFC0 |
| Closest Pantone® | Pantone 1915 C |
| Closest RAL | RAL 4010 [Telemagenta] |
#FF407F Grayscale Equivalents
| Average | #959595 |
| Lightness (Desaturation) | #A0A0A0 |
| Weighted (BT601) | #808080 [Grey] |
| Luma (BT709) | #6D6D6D |
WCAG 2.1 Color Contrast & Accessibility
Check how #FF407F complies with web accessibility standards (WCAG AA & AAA) for typography. Need to test against another custom color? Use our interactive contrast checker.
White Text on #FF407F
Sample preview of readable typography on top of #FF407F.
Black Text on #FF407F
Sample preview of readable typography on top of #FF407F.
HTML / CSS Live Previews & Snippets for #FF407F
Preview #FF407F in real UI elements and copy ready-to-use CSS rules.
background-color: #FF407F;
color: #FF407F;
border: 2px solid #FF407F;
:root {
--color-primary: #FF407F;
--color-primary-rgb: 255, 64, 127;
--color-complementary: #40FFC0;
}
.btn-accent {
background-color: #FF407F;
color: #000000;
}
Hex #FF407F Color Palettes
Complementary Palette
The complementary color of #FF407F is #40FFC0. Opposite on the color wheel, placing these two colors next to each other creates the strongest visual contrast.
Analogous Palette
The analogous color scheme of #FF407F pairs with #FF40DE and #FF6040, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.
Split-Complementary Palette
The split-complementary scheme of #FF407F pairs with #40DEFF and #40FF60, delivering strong contrast while remaining easier to balance than a direct complement.
Triadic Palette
The triadic color scheme of #FF407F uses #407FFF and #7FFF40, spaced 120° apart for balanced, high-energy contrast.
Tetradic Palette
The tetradic color scheme of #FF407F combines #7FFF40, #40FFC0 and #C040FF around the color wheel for rich multi-accent UI systems.
Square Palette
The square color scheme of #FF407F pairs with #DEFF40, #40FFC0 and #6040FF spaced evenly at 90° intervals.
Tints, Tones & Shades of Hex #FF407F
Tints
Tints are created by mixing #FF407F with white, producing lighter variations.
Tones
Tones are created by mixing #FF407F with gray, softening saturation.
Shades
Shades result from mixing #FF407F with black, creating deeper variations.
Hex #FF407F in Programming & CSS Frameworks
Copy the exact syntax for #FF407F in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:
| HTML / CSS | #FF407F |
| Tailwind CSS | bg-[#FF407F] text-[#FF407F] |
| Java (AWT) | new Color(255,64,127); |
| Python | Color("#FF407F") |
| .NET (C#) | Color.FromArgb(255, 255,64,127); |
| Swift / iOS | UIColor(red: 1, green: 0.25, blue: 0.5, alpha: 1) |
| Kotlin / Android | Color.rgb(255, 64, 127) |