What is hex #FF04DB color?

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

Hex #FF04DB Color Codes & Conversions

Closest Named Color
Magenta (#FF00FF)
Hex Code #FF04DB
Hex8 (RGBA Hex) #FF04DBFF
RGB (CSS) rgb(255, 4, 219)
RGBA (CSS) rgba(255, 4, 219, 1)
HSL (CSS) hsl(309, 100%, 51%)
HSLA (CSS) hsla(309, 100%, 51%, 1)
HSV / HSB (309°, 98%, 100%)
CMYK Values (0%, 98%, 14%, 0%)
OKLCH (Modern CSS) oklch(68.2% 0.300 336.6)
CIE-LAB (D65) 58.48, 93.27, -43.60
CIE XYZ 54.07, 26.47, 69.27
Decimal / Binary 16712923
11111111 00000100 11011011

Closest Standards & Equivalents

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

#FF04DB Grayscale Equivalents

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

WCAG 2.1 Color Contrast & Accessibility

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

Sample preview of readable typography on top of #FF04DB.

Contrast Ratio: 3.34:1
AA Fail AAA Fail

Black Text on #FF04DB

Sample preview of readable typography on top of #FF04DB.

Contrast Ratio: 6.29:1
AA Pass AAA Fail

HTML / CSS Live Previews & Snippets for #FF04DB

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

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

Hex #FF04DB Color Palettes

Complementary Palette

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

Split-Complementary Palette

The split-complementary scheme of #FF04DB pairs with #04FFA5 and #5DFF04, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #FF04DB uses #04DBFF and #DBFF04, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #FF04DB combines #DBFF04, #04FF28 and #2804FF around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #FF04DB pairs with #FFA504, #04FF28 and #045DFF spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #FF04DB

Tints

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

Tones

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

Shades

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

Hex #FF04DB in Programming & CSS Frameworks

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

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