What is hex #D804FF 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 85% red, 2% green and 100% blue, resulting in rgb(216, 4, 255) and hsl(291, 100%, 51%).
For print media and manufacturing layout, the CMYK equivalent is (15%, 98%, 0%, 0%).
In the HSV/HSB scale, #D804FF features a hue of 291°, 98% saturation, and 100% brightness.
Hex #D804FF Color Codes & Conversions
| Closest Named Color | Electric Purple (#BF00FF) |
| Hex Code | #D804FF |
| Hex8 (RGBA Hex) | #D804FFFF |
| RGB (CSS) | rgb(216, 4, 255) |
| RGBA (CSS) | rgba(216, 4, 255, 1) |
| HSL (CSS) | hsl(291, 100%, 51%) |
| HSLA (CSS) | hsla(291, 100%, 51%, 1) |
| HSV / HSB | (291°, 98%, 100%) |
| CMYK Values | (15%, 98%, 0%, 0%) |
| OKLCH (Modern CSS) | oklch(64.5% 0.309 319.4) |
| CIE-LAB (D65) | 53.93, 92.31, -71.46 |
| CIE XYZ | 46.41, 21.91, 96.37 |
| Decimal / Binary |
14157055
11011000 00000100 11111111 |
WCAG 2.1 Color Contrast & Accessibility
Check how #D804FF 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 #D804FF
Sample preview of readable typography on top of #D804FF.
Black Text on #D804FF
Sample preview of readable typography on top of #D804FF.
HTML / CSS Live Previews & Snippets for #D804FF
Preview #D804FF in real UI elements and copy ready-to-use CSS rules.
background-color: #D804FF;
color: #D804FF;
border: 2px solid #D804FF;
:root {
--color-primary: #D804FF;
--color-primary-rgb: 216, 4, 255;
--color-complementary: #2BFF04;
}
.btn-accent {
background-color: #D804FF;
color: #000000;
}
Hex #D804FF Color Palettes
Complementary Palette
The complementary color of #D804FF is #2BFF04. 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 #D804FF pairs with #5A04FF and #FF04A8, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.
Split-Complementary Palette
The split-complementary scheme of #D804FF pairs with #04FF5A and #A8FF04, delivering strong contrast while remaining easier to balance than a direct complement.
Triadic Palette
The triadic color scheme of #D804FF uses #04FFD8 and #FFD804, spaced 120° apart for balanced, high-energy contrast.
Tetradic Palette
The tetradic color scheme of #D804FF combines #FFD804, #2BFF04 and #042BFF around the color wheel for rich multi-accent UI systems.
Square Palette
The square color scheme of #D804FF pairs with #FF5A04, #2BFF04 and #04A8FF spaced evenly at 90° intervals.
Tints, Tones & Shades of Hex #D804FF
Tints
Tints are created by mixing #D804FF with white, producing lighter variations.
Tones
Tones are created by mixing #D804FF with gray, softening saturation.
Shades
Shades result from mixing #D804FF with black, creating deeper variations.
Hex #D804FF in Programming & CSS Frameworks
Copy the exact syntax for #D804FF in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:
| HTML / CSS | #D804FF |
| Tailwind CSS | bg-[#D804FF] text-[#D804FF] |
| Java (AWT) | new Color(216,4,255); |
| Python | Color("#D804FF") |
| .NET (C#) | Color.FromArgb(255, 216,4,255); |
| Swift / iOS | UIColor(red: 0.85, green: 0.02, blue: 1, alpha: 1) |
| Kotlin / Android | Color.rgb(216, 4, 255) |