What is hex #DC40FF 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 86% red, 25% green and 100% blue, resulting in rgb(220, 64, 255) and hsl(289, 100%, 63%).
For print media and manufacturing layout, the CMYK equivalent is (14%, 75%, 0%, 0%).
In the HSV/HSB scale, #DC40FF features a hue of 289°, 75% saturation, and 100% brightness.
Hex #DC40FF Color Codes & Conversions
| Closest Named Color | Medium Orchid (#BA55D3) |
| Hex Code | #DC40FF |
| Hex8 (RGBA Hex) | #DC40FFFF |
| RGB (CSS) | rgb(220, 64, 255) |
| RGBA (CSS) | rgba(220, 64, 255, 1) |
| HSL (CSS) | hsl(289, 100%, 63%) |
| HSLA (CSS) | hsla(289, 100%, 63%, 1) |
| HSV / HSB | (289°, 75%, 100%) |
| CMYK Values | (14%, 75%, 0%, 0%) |
| OKLCH (Modern CSS) | oklch(67.6% 0.279 319.4) |
| CIE-LAB (D65) | 58.14, 82.44, -64.64 |
| CIE XYZ | 49.40, 26.10, 97.03 |
| Decimal / Binary |
14434559
11011100 01000000 11111111 |
Closest Standards & Equivalents
| Closest Web Safe | #CC33FF |
| Inverse Color | #23BF00 |
| Complementary Color | #63FF40 |
| Closest Pantone® | Pantone 239 C |
| Closest RAL | RAL 4003 [Heather violet] |
#DC40FF Grayscale Equivalents
| Average | #B4B4B4 |
| Lightness (Desaturation) | #A0A0A0 |
| Weighted (BT601) | #848484 |
| Luma (BT709) | #6F6F6F |
WCAG 2.1 Color Contrast & Accessibility
Check how #DC40FF 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 #DC40FF
Sample preview of readable typography on top of #DC40FF.
Black Text on #DC40FF
Sample preview of readable typography on top of #DC40FF.
HTML / CSS Live Previews & Snippets for #DC40FF
Preview #DC40FF in real UI elements and copy ready-to-use CSS rules.
background-color: #DC40FF;
color: #DC40FF;
border: 2px solid #DC40FF;
:root {
--color-primary: #DC40FF;
--color-primary-rgb: 220, 64, 255;
--color-complementary: #63FF40;
}
.btn-accent {
background-color: #DC40FF;
color: #000000;
}
Hex #DC40FF Color Palettes
Complementary Palette
The complementary color of #DC40FF is #63FF40. 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 #DC40FF pairs with #7C40FF and #FF40C2, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.
Split-Complementary Palette
The split-complementary scheme of #DC40FF pairs with #40FF7C and #C2FF40, delivering strong contrast while remaining easier to balance than a direct complement.
Triadic Palette
The triadic color scheme of #DC40FF uses #40FFDC and #FFDC40, spaced 120° apart for balanced, high-energy contrast.
Tetradic Palette
The tetradic color scheme of #DC40FF combines #FFDC40, #63FF40 and #4063FF around the color wheel for rich multi-accent UI systems.
Square Palette
The square color scheme of #DC40FF pairs with #FF7C40, #63FF40 and #40C2FF spaced evenly at 90° intervals.
Tints, Tones & Shades of Hex #DC40FF
Tints
Tints are created by mixing #DC40FF with white, producing lighter variations.
Tones
Tones are created by mixing #DC40FF with gray, softening saturation.
Shades
Shades result from mixing #DC40FF with black, creating deeper variations.
Hex #DC40FF in Programming & CSS Frameworks
Copy the exact syntax for #DC40FF in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:
| HTML / CSS | #DC40FF |
| Tailwind CSS | bg-[#DC40FF] text-[#DC40FF] |
| Java (AWT) | new Color(220,64,255); |
| Python | Color("#DC40FF") |
| .NET (C#) | Color.FromArgb(255, 220,64,255); |
| Swift / iOS | UIColor(red: 0.86, green: 0.25, blue: 1, alpha: 1) |
| Kotlin / Android | Color.rgb(220, 64, 255) |