What is hex #FF31FF 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, 19% green and 100% blue, resulting in rgb(255, 49, 255) and hsl(300, 100%, 60%).
For print media and manufacturing layout, the CMYK equivalent is (0%, 81%, 0%, 0%).
In the HSV/HSB scale, #FF31FF features a hue of 300°, 81% saturation, and 100% brightness.
Hex #FF31FF Color Codes & Conversions
| Closest Named Color | Magenta (#FF00FF) |
| Hex Code | #FF31FF |
| Hex8 (RGBA Hex) | #FF31FFFF |
| RGB (CSS) | rgb(255, 49, 255) |
| RGBA (CSS) | rgba(255, 49, 255, 1) |
| HSL (CSS) | hsl(300, 100%, 60%) |
| HSLA (CSS) | hsla(300, 100%, 60%, 1) |
| HSV / HSB | (300°, 81%, 100%) |
| CMYK Values | (0%, 81%, 0%, 0%) |
| OKLCH (Modern CSS) | oklch(71.5% 0.304 328.2) |
| CIE-LAB (D65) | 62.24, 92.61, -57.77 |
| CIE XYZ | 60.39, 30.68, 97.33 |
| Decimal / Binary |
16724479
11111111 00110001 11111111 |
WCAG 2.1 Color Contrast & Accessibility
Check how #FF31FF 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 #FF31FF
Sample preview of readable typography on top of #FF31FF.
Black Text on #FF31FF
Sample preview of readable typography on top of #FF31FF.
HTML / CSS Live Previews & Snippets for #FF31FF
Preview #FF31FF in real UI elements and copy ready-to-use CSS rules.
background-color: #FF31FF;
color: #FF31FF;
border: 2px solid #FF31FF;
:root {
--color-primary: #FF31FF;
--color-primary-rgb: 255, 49, 255;
--color-complementary: #31FF31;
}
.btn-accent {
background-color: #FF31FF;
color: #000000;
}
Hex #FF31FF Color Palettes
Complementary Palette
The complementary color of #FF31FF is #31FF31. 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 #FF31FF pairs with #9831FF and #FF3198, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.
Split-Complementary Palette
The split-complementary scheme of #FF31FF pairs with #31FF98 and #98FF31, delivering strong contrast while remaining easier to balance than a direct complement.
Triadic Palette
The triadic color scheme of #FF31FF uses #31FFFF and #FFFF31, spaced 120° apart for balanced, high-energy contrast.
Tetradic Palette
The tetradic color scheme of #FF31FF combines #FFFF31, #31FF31 and #3131FF around the color wheel for rich multi-accent UI systems.
Square Palette
The square color scheme of #FF31FF pairs with #FF9831, #31FF31 and #3198FF spaced evenly at 90° intervals.
Tints, Tones & Shades of Hex #FF31FF
Tints
Tints are created by mixing #FF31FF with white, producing lighter variations.
Tones
Tones are created by mixing #FF31FF with gray, softening saturation.
Shades
Shades result from mixing #FF31FF with black, creating deeper variations.
Hex #FF31FF in Programming & CSS Frameworks
Copy the exact syntax for #FF31FF in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:
| HTML / CSS | #FF31FF |
| Tailwind CSS | bg-[#FF31FF] text-[#FF31FF] |
| Java (AWT) | new Color(255,49,255); |
| Python | Color("#FF31FF") |
| .NET (C#) | Color.FromArgb(255, 255,49,255); |
| Swift / iOS | UIColor(red: 1, green: 0.19, blue: 1, alpha: 1) |
| Kotlin / Android | Color.rgb(255, 49, 255) |