What is hex #FF40CC color?

 
The hex code #FF40CC is closest to the named color Frostbite (#E936A7).
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 80% blue, resulting in rgb(255, 64, 204) and hsl(316, 100%, 63%).
For print media and manufacturing layout, the CMYK equivalent is (0%, 75%, 20%, 0%).
In the HSV/HSB scale, #FF40CC features a hue of 316°, 75% saturation, and 100% brightness.

Hex #FF40CC Color Codes & Conversions

Closest Named Color
Frostbite (#E936A7)
Hex Code #FF40CC
Hex8 (RGBA Hex) #FF40CCFF
RGB (CSS) rgb(255, 64, 204)
RGBA (CSS) rgba(255, 64, 204, 1)
HSL (CSS) hsl(316, 100%, 63%)
HSLA (CSS) hsla(316, 100%, 63%, 1)
HSV / HSB (316°, 75%, 100%)
CMYK Values (0%, 75%, 20%, 0%)
OKLCH (Modern CSS) oklch(69.9% 0.260 341.2)
CIE-LAB (D65) 61.04, 81.99, -31.08
CIE XYZ 53.97, 29.29, 59.93
Decimal / Binary 16728268
11111111 01000000 11001100

Closest Standards & Equivalents

Closest Web Safe
#FF33CC
Inverse Color
#00BF33
Complementary Color
#40FF73
Closest Pantone®
Pantone 806 C
Closest RAL
RAL 4003 [Heather violet]

#FF40CC Grayscale Equivalents

Average
#AEAEAE
Lightness (Desaturation)
#A0A0A0
Weighted (BT601)
#898989
Luma (BT709)
#737373

WCAG 2.1 Color Contrast & Accessibility

Check how #FF40CC 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 #FF40CC

Sample preview of readable typography on top of #FF40CC.

Contrast Ratio: 3.06:1
AA Fail AAA Fail

Black Text on #FF40CC

Sample preview of readable typography on top of #FF40CC.

Contrast Ratio: 6.86:1
AA Pass AAA Fail

HTML / CSS Live Previews & Snippets for #FF40CC

Preview #FF40CC in real UI elements and copy ready-to-use CSS rules.

Background Preview
background-color: #FF40CC;
Typography Color Preview
color: #FF40CC;
Border & Shadow Preview
border: 2px solid #FF40CC;
CSS Custom Properties & Gradient
:root {
  --color-primary: #FF40CC;
  --color-primary-rgb: 255, 64, 204;
  --color-complementary: #40FF73;
}
.btn-accent {
  background-color: #FF40CC;
  color: #000000;
}

Hex #FF40CC Color Palettes

Complementary Palette

The complementary color of #FF40CC is #40FF73. 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 #FF40CC pairs with #D240FF and #FF406C, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

The split-complementary scheme of #FF40CC pairs with #40FFD2 and #6CFF40, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #FF40CC uses #40CCFF and #CCFF40, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #FF40CC combines #CCFF40, #40FF73 and #7340FF around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #FF40CC pairs with #FFD240, #40FF73 and #406CFF spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #FF40CC

Tints

Tints are created by mixing #FF40CC with white, producing lighter variations.

Tones

Tones are created by mixing #FF40CC with gray, softening saturation.

Shades

Shades result from mixing #FF40CC with black, creating deeper variations.

Hex #FF40CC in Programming & CSS Frameworks

Copy the exact syntax for #FF40CC in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:

HTML / CSS #FF40CC
Tailwind CSS bg-[#FF40CC] text-[#FF40CC]
Java (AWT) new Color(255,64,204);
Python Color("#FF40CC")
.NET (C#) Color.FromArgb(255, 255,64,204);
Swift / iOS UIColor(red: 1, green: 0.25, blue: 0.8, alpha: 1)
Kotlin / Android Color.rgb(255, 64, 204)