What is hex #FF04FF color?

 
The hex code #FF04FF 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 100% blue, resulting in rgb(255, 4, 255) and hsl(300, 100%, 51%).
For print media and manufacturing layout, the CMYK equivalent is (0%, 98%, 0%, 0%).
In the HSV/HSB scale, #FF04FF features a hue of 300°, 98% saturation, and 100% brightness.

Hex #FF04FF Color Codes & Conversions

Closest Named Color
Magenta (#FF00FF)
Hex Code #FF04FF
Hex8 (RGBA Hex) #FF04FFFF
RGB (CSS) rgb(255, 4, 255)
RGBA (CSS) rgba(255, 4, 255, 1)
HSL (CSS) hsl(300, 100%, 51%)
HSLA (CSS) hsla(300, 100%, 51%, 1)
HSV / HSB (300°, 98%, 100%)
CMYK Values (0%, 98%, 0%, 0%)
OKLCH (Modern CSS) oklch(70.2% 0.322 328.4)
CIE-LAB (D65) 60.40, 98.00, -60.70
CIE XYZ 59.33, 28.57, 96.98
Decimal / Binary 16712959
11111111 00000100 11111111

Closest Standards & Equivalents

Closest Web Safe
#FF00FF [Magenta]
Inverse Color
#00FB00
Complementary Color
#04FF04
Closest Pantone®
Pantone 807 C
Closest RAL
RAL 3024 [Luminous red]

#FF04FF Grayscale Equivalents

Average
#ABABAB
Lightness (Desaturation)
#828282
Weighted (BT601)
#6C6C6C
Luma (BT709)
#4B4B4B

WCAG 2.1 Color Contrast & Accessibility

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

Sample preview of readable typography on top of #FF04FF.

Contrast Ratio: 3.13:1
AA Fail AAA Fail

Black Text on #FF04FF

Sample preview of readable typography on top of #FF04FF.

Contrast Ratio: 6.71:1
AA Pass AAA Fail

HTML / CSS Live Previews & Snippets for #FF04FF

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

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

Hex #FF04FF Color Palettes

Complementary Palette

The complementary color of #FF04FF is #04FF04. 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 #FF04FF pairs with #8104FF and #FF0481, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

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

Triadic Palette

The triadic color scheme of #FF04FF uses #04FFFF and #FFFF04, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #FF04FF combines #FFFF04, #04FF04 and #0404FF around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #FF04FF pairs with #FF8104, #04FF04 and #0481FF spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #FF04FF

Tints

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

Tones

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

Shades

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

Hex #FF04FF in Programming & CSS Frameworks

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

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