What is hex #FF40DF 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 87% blue, resulting in rgb(255, 64, 223) and hsl(310, 100%, 63%).
For print media and manufacturing layout, the CMYK equivalent is (0%, 75%, 13%, 0%).
In the HSV/HSB scale, #FF40DF features a hue of 310°, 75% saturation, and 100% brightness.
Hex #FF40DF Color Codes & Conversions
| Closest Named Color | Frostbite (#E936A7) |
| Hex Code | #FF40DF |
| Hex8 (RGBA Hex) | #FF40DFFF |
| RGB (CSS) | rgb(255, 64, 223) |
| RGBA (CSS) | rgba(255, 64, 223, 1) |
| HSL (CSS) | hsl(310, 100%, 63%) |
| HSLA (CSS) | hsla(310, 100%, 63%, 1) |
| HSV / HSB | (310°, 75%, 100%) |
| CMYK Values | (0%, 75%, 13%, 0%) |
| OKLCH (Modern CSS) | oklch(70.7% 0.271 336.0) |
| CIE-LAB (D65) | 61.88, 84.47, -40.51 |
| CIE XYZ | 56.39, 30.26, 72.67 |
| Decimal / Binary |
16728287
11111111 01000000 11011111 |
Closest Standards & Equivalents
| Closest Web Safe | #FF33CC |
| Inverse Color | #00BF20 |
| Complementary Color | #40FF60 |
| Closest Pantone® | Pantone 806 C |
| Closest RAL | RAL 4003 [Heather violet] |
#FF40DF Grayscale Equivalents
| Average | #B5B5B5 |
| Lightness (Desaturation) | #A0A0A0 |
| Weighted (BT601) | #8B8B8B |
| Luma (BT709) | #747474 |
WCAG 2.1 Color Contrast & Accessibility
Check how #FF40DF 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 #FF40DF
Sample preview of readable typography on top of #FF40DF.
Black Text on #FF40DF
Sample preview of readable typography on top of #FF40DF.
HTML / CSS Live Previews & Snippets for #FF40DF
Preview #FF40DF in real UI elements and copy ready-to-use CSS rules.
background-color: #FF40DF;
color: #FF40DF;
border: 2px solid #FF40DF;
:root {
--color-primary: #FF40DF;
--color-primary-rgb: 255, 64, 223;
--color-complementary: #40FF60;
}
.btn-accent {
background-color: #FF40DF;
color: #000000;
}
Hex #FF40DF Color Palettes
Complementary Palette
The complementary color of #FF40DF is #40FF60. 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 #FF40DF pairs with #BF40FF and #FF407F, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.
Split-Complementary Palette
The split-complementary scheme of #FF40DF pairs with #40FFBF and #7FFF40, delivering strong contrast while remaining easier to balance than a direct complement.
Triadic Palette
The triadic color scheme of #FF40DF uses #40DFFF and #DFFF40, spaced 120° apart for balanced, high-energy contrast.
Tetradic Palette
The tetradic color scheme of #FF40DF combines #DFFF40, #40FF60 and #6040FF around the color wheel for rich multi-accent UI systems.
Square Palette
The square color scheme of #FF40DF pairs with #FFBF40, #40FF60 and #407FFF spaced evenly at 90° intervals.
Tints, Tones & Shades of Hex #FF40DF
Tints
Tints are created by mixing #FF40DF with white, producing lighter variations.
Tones
Tones are created by mixing #FF40DF with gray, softening saturation.
Shades
Shades result from mixing #FF40DF with black, creating deeper variations.
Hex #FF40DF in Programming & CSS Frameworks
Copy the exact syntax for #FF40DF in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:
| HTML / CSS | #FF40DF |
| Tailwind CSS | bg-[#FF40DF] text-[#FF40DF] |
| Java (AWT) | new Color(255,64,223); |
| Python | Color("#FF40DF") |
| .NET (C#) | Color.FromArgb(255, 255,64,223); |
| Swift / iOS | UIColor(red: 1, green: 0.25, blue: 0.87, alpha: 1) |
| Kotlin / Android | Color.rgb(255, 64, 223) |