What is hex #C040FF 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 75% red, 25% green and 100% blue, resulting in rgb(192, 64, 255) and hsl(280, 100%, 63%).
For print media and manufacturing layout, the CMYK equivalent is (25%, 75%, 0%, 0%).
In the HSV/HSB scale, #C040FF features a hue of 280°, 75% saturation, and 100% brightness.
Hex #C040FF Color Codes & Conversions
| Closest Named Color | Medium Orchid (#BA55D3) |
| Hex Code | #C040FF |
| Hex8 (RGBA Hex) | #C040FFFF |
| RGB (CSS) | rgb(192, 64, 255) |
| RGBA (CSS) | rgba(192, 64, 255, 1) |
| HSL (CSS) | hsl(280, 100%, 63%) |
| HSLA (CSS) | hsla(280, 100%, 63%, 1) |
| HSV / HSB | (280°, 75%, 100%) |
| CMYK Values | (25%, 75%, 0%, 0%) |
| OKLCH (Modern CSS) | oklch(63.9% 0.270 311.5) |
| CIE-LAB (D65) | 54.13, 77.41, -71.31 |
| CIE XYZ | 41.62, 22.09, 96.66 |
| Decimal / Binary |
12599551
11000000 01000000 11111111 |
Closest Standards & Equivalents
| Closest Web Safe | #CC33FF |
| Inverse Color | #3FBF00 |
| Complementary Color | #7FFF40 |
| Closest Pantone® | Pantone 2582 C |
| Closest RAL | RAL 4010 [Telemagenta] |
#C040FF Grayscale Equivalents
| Average | #AAAAAA |
| Lightness (Desaturation) | #A0A0A0 |
| Weighted (BT601) | #7C7C7C |
| Luma (BT709) | #696969 [Dim Grey] |
WCAG 2.1 Color Contrast & Accessibility
Check how #C040FF 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 #C040FF
Sample preview of readable typography on top of #C040FF.
Black Text on #C040FF
Sample preview of readable typography on top of #C040FF.
HTML / CSS Live Previews & Snippets for #C040FF
Preview #C040FF in real UI elements and copy ready-to-use CSS rules.
background-color: #C040FF;
color: #C040FF;
border: 2px solid #C040FF;
:root {
--color-primary: #C040FF;
--color-primary-rgb: 192, 64, 255;
--color-complementary: #7FFF40;
}
.btn-accent {
background-color: #C040FF;
color: #000000;
}
Hex #C040FF Color Palettes
Complementary Palette
The complementary color of #C040FF is #7FFF40. 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 #C040FF pairs with #6040FF and #FF40DE, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.
Split-Complementary Palette
The split-complementary scheme of #C040FF pairs with #40FF60 and #DEFF40, delivering strong contrast while remaining easier to balance than a direct complement.
Triadic Palette
The triadic color scheme of #C040FF uses #40FFC0 and #FFC040, spaced 120° apart for balanced, high-energy contrast.
Tetradic Palette
The tetradic color scheme of #C040FF combines #FFC040, #7FFF40 and #407FFF around the color wheel for rich multi-accent UI systems.
Square Palette
The square color scheme of #C040FF pairs with #FF6040, #7FFF40 and #40DEFF spaced evenly at 90° intervals.
Tints, Tones & Shades of Hex #C040FF
Tints
Tints are created by mixing #C040FF with white, producing lighter variations.
Tones
Tones are created by mixing #C040FF with gray, softening saturation.
Shades
Shades result from mixing #C040FF with black, creating deeper variations.
Hex #C040FF in Programming & CSS Frameworks
Copy the exact syntax for #C040FF in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:
| HTML / CSS | #C040FF |
| Tailwind CSS | bg-[#C040FF] text-[#C040FF] |
| Java (AWT) | new Color(192,64,255); |
| Python | Color("#C040FF") |
| .NET (C#) | Color.FromArgb(255, 192,64,255); |
| Swift / iOS | UIColor(red: 0.75, green: 0.25, blue: 1, alpha: 1) |
| Kotlin / Android | Color.rgb(192, 64, 255) |