What is hex #FF0CD4 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 100% red, 5% green and 83% blue, resulting in rgb(255, 12, 212) and hsl(311, 100%, 52%).
For print media and manufacturing layout, the CMYK equivalent is (0%, 95%, 17%, 0%).
In the HSV/HSB scale, #FF0CD4 features a hue of 311°, 95% saturation, and 100% brightness.
Hex #FF0CD4 Color Codes & Conversions
| Closest Named Color | Deep Magenta (#CC00CC) |
| Hex Code | #FF0CD4 |
| Hex8 (RGBA Hex) | #FF0CD4FF |
| RGB (CSS) | rgb(255, 12, 212) |
| RGBA (CSS) | rgba(255, 12, 212, 1) |
| HSL (CSS) | hsl(311, 100%, 52%) |
| HSLA (CSS) | hsla(311, 100%, 52%, 1) |
| HSV / HSB | (311°, 95%, 100%) |
| CMYK Values | (0%, 95%, 17%, 0%) |
| OKLCH (Modern CSS) | oklch(68.0% 0.295 338.4) |
| CIE-LAB (D65) | 58.30, 91.93, -39.90 |
| CIE XYZ | 53.26, 26.28, 64.54 |
| Decimal / Binary |
16714964
11111111 00001100 11010100 |
WCAG 2.1 Color Contrast & Accessibility
Check how #FF0CD4 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 #FF0CD4
Sample preview of readable typography on top of #FF0CD4.
Black Text on #FF0CD4
Sample preview of readable typography on top of #FF0CD4.
HTML / CSS Live Previews & Snippets for #FF0CD4
Preview #FF0CD4 in real UI elements and copy ready-to-use CSS rules.
background-color: #FF0CD4;
color: #FF0CD4;
border: 2px solid #FF0CD4;
:root {
--color-primary: #FF0CD4;
--color-primary-rgb: 255, 12, 212;
--color-complementary: #0CFF37;
}
.btn-accent {
background-color: #FF0CD4;
color: #000000;
}
Hex #FF0CD4 Color Palettes
Complementary Palette
The complementary color of #FF0CD4 is #0CFF37. 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 #FF0CD4 pairs with #B00CFF and #FF0C5A, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.
Split-Complementary Palette
The split-complementary scheme of #FF0CD4 pairs with #0CFFB0 and #5AFF0C, delivering strong contrast while remaining easier to balance than a direct complement.
Triadic Palette
The triadic color scheme of #FF0CD4 uses #0CD4FF and #D4FF0C, spaced 120° apart for balanced, high-energy contrast.
Tetradic Palette
The tetradic color scheme of #FF0CD4 combines #D4FF0C, #0CFF37 and #370CFF around the color wheel for rich multi-accent UI systems.
Square Palette
The square color scheme of #FF0CD4 pairs with #FFB00C, #0CFF37 and #0C5AFF spaced evenly at 90° intervals.
Tints, Tones & Shades of Hex #FF0CD4
Tints
Tints are created by mixing #FF0CD4 with white, producing lighter variations.
Tones
Tones are created by mixing #FF0CD4 with gray, softening saturation.
Shades
Shades result from mixing #FF0CD4 with black, creating deeper variations.
Hex #FF0CD4 in Programming & CSS Frameworks
Copy the exact syntax for #FF0CD4 in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:
| HTML / CSS | #FF0CD4 |
| Tailwind CSS | bg-[#FF0CD4] text-[#FF0CD4] |
| Java (AWT) | new Color(255,12,212); |
| Python | Color("#FF0CD4") |
| .NET (C#) | Color.FromArgb(255, 255,12,212); |
| Swift / iOS | UIColor(red: 1, green: 0.05, blue: 0.83, alpha: 1) |
| Kotlin / Android | Color.rgb(255, 12, 212) |