What is hex #CD40FF color?

 
The hex code #CD40FF 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(205, 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, #CD40FF features a hue of 284°, 75% saturation, and 100% brightness.

Hex #CD40FF Color Codes & Conversions

Closest Named Color
Medium Orchid (#BA55D3)
Hex Code #CD40FF
Hex8 (RGBA Hex) #CD40FFFF
RGB (CSS) rgb(205, 64, 255)
RGBA (CSS) rgba(205, 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.6% 0.274 315.3)
CIE-LAB (D65) 55.96, 79.71, -68.26
CIE XYZ 45.06, 23.87, 96.82
Decimal / Binary 13451519
11001101 01000000 11111111

Closest Standards & Equivalents

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

#CD40FF Grayscale Equivalents

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

WCAG 2.1 Color Contrast & Accessibility

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

Sample preview of readable typography on top of #CD40FF.

Contrast Ratio: 3.64:1
AA Fail AAA Fail

Black Text on #CD40FF

Sample preview of readable typography on top of #CD40FF.

Contrast Ratio: 5.77:1
AA Pass AAA Fail

HTML / CSS Live Previews & Snippets for #CD40FF

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

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

Hex #CD40FF Color Palettes

Complementary Palette

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

Split-Complementary Palette

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

Triadic Palette

The triadic color scheme of #CD40FF uses #40FFCD and #FFCD40, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #CD40FF combines #FFCD40, #72FF40 and #4072FF around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #CD40FF pairs with #FF6D40, #72FF40 and #40D1FF spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #CD40FF

Tints

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

Tones

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

Shades

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

Hex #CD40FF in Programming & CSS Frameworks

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

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