What is hex #DF40FF color?

 
The hex code #DF40FF 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 87% red, 25% green and 100% blue, resulting in rgb(223, 64, 255) and hsl(290, 100%, 63%).
For print media and manufacturing layout, the CMYK equivalent is (13%, 75%, 0%, 0%).
In the HSV/HSB scale, #DF40FF features a hue of 290°, 75% saturation, and 100% brightness.

Hex #DF40FF Color Codes & Conversions

Closest Named Color
Medium Orchid (#BA55D3)
Hex Code #DF40FF
Hex8 (RGBA Hex) #DF40FFFF
RGB (CSS) rgb(223, 64, 255)
RGBA (CSS) rgba(223, 64, 255, 1)
HSL (CSS) hsl(290, 100%, 63%)
HSLA (CSS) hsla(290, 100%, 63%, 1)
HSV / HSB (290°, 75%, 100%)
CMYK Values (13%, 75%, 0%, 0%)
OKLCH (Modern CSS) oklch(68.0% 0.280 320.2)
CIE-LAB (D65) 58.58, 83.00, -63.90
CIE XYZ 50.31, 26.58, 97.07
Decimal / Binary 14631167
11011111 01000000 11111111

Closest Standards & Equivalents

Closest Web Safe
#CC33FF
Inverse Color
#20BF00
Complementary Color
#60FF40
Closest Pantone®
Pantone 239 C
Closest RAL
RAL 4003 [Heather violet]

#DF40FF Grayscale Equivalents

Average
#B5B5B5
Lightness (Desaturation)
#A0A0A0
Weighted (BT601)
#858585
Luma (BT709)
#707070

WCAG 2.1 Color Contrast & Accessibility

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

Sample preview of readable typography on top of #DF40FF.

Contrast Ratio: 3.33:1
AA Fail AAA Fail

Black Text on #DF40FF

Sample preview of readable typography on top of #DF40FF.

Contrast Ratio: 6.31:1
AA Pass AAA Fail

HTML / CSS Live Previews & Snippets for #DF40FF

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

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

Hex #DF40FF Color Palettes

Complementary Palette

The complementary color of #DF40FF is #60FF40. 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 #DF40FF pairs with #7F40FF and #FF40BF, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

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

Triadic Palette

The triadic color scheme of #DF40FF uses #40FFDF and #FFDF40, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #DF40FF combines #FFDF40, #60FF40 and #4060FF around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #DF40FF pairs with #FF7F40, #60FF40 and #40BFFF spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #DF40FF

Tints

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

Tones

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

Shades

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

Hex #DF40FF in Programming & CSS Frameworks

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

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