What is hex #CC40FF color?

 
The hex code #CC40FF is closest to the named color Medium Orchid (#BA55D3).
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 80% red, 25% green and 100% blue, resulting in rgb(204, 64, 255) and hsl(284, 100%, 63%).
For print media and manufacturing layout, the CMYK equivalent is (20%, 75%, 0%, 0%).
In the HSV/HSB scale, #CC40FF features a hue of 284°, 75% saturation, and 100% brightness.

Hex #CC40FF Color Codes & Conversions

Closest Named Color
Medium Orchid (#BA55D3)
Hex Code #CC40FF
Hex8 (RGBA Hex) #CC40FFFF
RGB (CSS) rgb(204, 64, 255)
RGBA (CSS) rgba(204, 64, 255, 1)
HSL (CSS) hsl(284, 100%, 63%)
HSLA (CSS) hsla(284, 100%, 63%, 1)
HSV / HSB (284°, 75%, 100%)
CMYK Values (20%, 75%, 0%, 0%)
OKLCH (Modern CSS) oklch(65.5% 0.273 315.0)
CIE-LAB (D65) 55.81, 79.53, -68.50
CIE XYZ 44.78, 23.73, 96.81
Decimal / Binary 13385983
11001100 01000000 11111111

Closest Standards & Equivalents

Closest Web Safe
#CC33FF
Inverse Color
#33BF00
Complementary Color
#73FF40
Closest Pantone®
Pantone 252 C
Closest RAL
RAL 4003 [Heather violet]

#CC40FF Grayscale Equivalents

Average
#AEAEAE
Lightness (Desaturation)
#A0A0A0
Weighted (BT601)
#808080 [Grey]
Luma (BT709)
#6C6C6C

WCAG 2.1 Color Contrast & Accessibility

Check how #CC40FF 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 #CC40FF

Sample preview of readable typography on top of #CC40FF.

Contrast Ratio: 3.66:1
AA Fail AAA Fail

Black Text on #CC40FF

Sample preview of readable typography on top of #CC40FF.

Contrast Ratio: 5.74:1
AA Pass AAA Fail

HTML / CSS Live Previews & Snippets for #CC40FF

Preview #CC40FF in real UI elements and copy ready-to-use CSS rules.

Background Preview
background-color: #CC40FF;
Typography Color Preview
color: #CC40FF;
Border & Shadow Preview
border: 2px solid #CC40FF;
CSS Custom Properties & Gradient
:root {
  --color-primary: #CC40FF;
  --color-primary-rgb: 204, 64, 255;
  --color-complementary: #73FF40;
}
.btn-accent {
  background-color: #CC40FF;
  color: #000000;
}

Hex #CC40FF Color Palettes

Complementary Palette

The complementary color of #CC40FF is #73FF40. 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 #CC40FF pairs with #6C40FF and #FF40D2, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

The split-complementary scheme of #CC40FF pairs with #40FF6C and #D2FF40, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #CC40FF uses #40FFCC and #FFCC40, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #CC40FF combines #FFCC40, #73FF40 and #4073FF around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #CC40FF pairs with #FF6C40, #73FF40 and #40D2FF spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #CC40FF

Tints

Tints are created by mixing #CC40FF with white, producing lighter variations.

Tones

Tones are created by mixing #CC40FF with gray, softening saturation.

Shades

Shades result from mixing #CC40FF with black, creating deeper variations.

Hex #CC40FF in Programming & CSS Frameworks

Copy the exact syntax for #CC40FF in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:

HTML / CSS #CC40FF
Tailwind CSS bg-[#CC40FF] text-[#CC40FF]
Java (AWT) new Color(204,64,255);
Python Color("#CC40FF")
.NET (C#) Color.FromArgb(255, 204,64,255);
Swift / iOS UIColor(red: 0.8, green: 0.25, blue: 1, alpha: 1)
Kotlin / Android Color.rgb(204, 64, 255)