What is hex #FF04DF color?

 
The hex code #FF04DF is closest to the named color Magenta (#FF00FF).
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, 2% green and 87% blue, resulting in rgb(255, 4, 223) and hsl(308, 100%, 51%).
For print media and manufacturing layout, the CMYK equivalent is (0%, 98%, 13%, 0%).
In the HSV/HSB scale, #FF04DF features a hue of 308°, 98% saturation, and 100% brightness.

Hex #FF04DF Color Codes & Conversions

Closest Named Color
Magenta (#FF00FF)
Hex Code #FF04DF
Hex8 (RGBA Hex) #FF04DFFF
RGB (CSS) rgb(255, 4, 223)
RGBA (CSS) rgba(255, 4, 223, 1)
HSL (CSS) hsl(308, 100%, 51%)
HSLA (CSS) hsla(308, 100%, 51%, 1)
HSV / HSB (308°, 98%, 100%)
CMYK Values (0%, 98%, 13%, 0%)
OKLCH (Modern CSS) oklch(68.5% 0.302 335.6)
CIE-LAB (D65) 58.68, 93.77, -45.55
CIE XYZ 54.60, 26.68, 72.07
Decimal / Binary 16712927
11111111 00000100 11011111

Closest Standards & Equivalents

Closest Web Safe
#FF00CC
Inverse Color
#00FB20
Complementary Color
#04FF24
Closest Pantone®
Pantone 807 C
Closest RAL
RAL 3024 [Luminous red]

#FF04DF Grayscale Equivalents

Average
#A1A1A1
Lightness (Desaturation)
#828282
Weighted (BT601)
#686868
Luma (BT709)
#494949

WCAG 2.1 Color Contrast & Accessibility

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

Sample preview of readable typography on top of #FF04DF.

Contrast Ratio: 3.31:1
AA Fail AAA Fail

Black Text on #FF04DF

Sample preview of readable typography on top of #FF04DF.

Contrast Ratio: 6.33:1
AA Pass AAA Fail

HTML / CSS Live Previews & Snippets for #FF04DF

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

Background Preview
background-color: #FF04DF;
Typography Color Preview
color: #FF04DF;
Border & Shadow Preview
border: 2px solid #FF04DF;
CSS Custom Properties & Gradient
:root {
  --color-primary: #FF04DF;
  --color-primary-rgb: 255, 4, 223;
  --color-complementary: #04FF24;
}
.btn-accent {
  background-color: #FF04DF;
  color: #000000;
}

Hex #FF04DF Color Palettes

Complementary Palette

The complementary color of #FF04DF is #04FF24. 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 #FF04DF pairs with #A104FF and #FF0461, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

The split-complementary scheme of #FF04DF pairs with #04FFA1 and #61FF04, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #FF04DF uses #04DFFF and #DFFF04, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #FF04DF combines #DFFF04, #04FF24 and #2404FF around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #FF04DF pairs with #FFA104, #04FF24 and #0461FF spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #FF04DF

Tints

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

Tones

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

Shades

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

Hex #FF04DF in Programming & CSS Frameworks

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

HTML / CSS #FF04DF
Tailwind CSS bg-[#FF04DF] text-[#FF04DF]
Java (AWT) new Color(255,4,223);
Python Color("#FF04DF")
.NET (C#) Color.FromArgb(255, 255,4,223);
Swift / iOS UIColor(red: 1, green: 0.02, blue: 0.87, alpha: 1)
Kotlin / Android Color.rgb(255, 4, 223)