What is hex #D152FF color?
In professional design frameworks, this hue is considered a balanced and versatile hue. It is ideal for creating smooth color harmony, digital artwork, or minimalist web components.
From a technical standpoint, this color is composed of 82% red, 32% green and 100% blue, resulting in rgb(209, 82, 255) and hsl(284, 100%, 66%).
For print media and manufacturing layout, the CMYK equivalent is (18%, 68%, 0%, 0%).
In the HSV/HSB scale, #D152FF features a hue of 284°, 68% saturation, and 100% brightness.
Hex #D152FF Color Codes & Conversions
| Closest Named Color | Medium Orchid (#BA55D3) |
| Hex Code | #D152FF |
| Hex8 (RGBA Hex) | #D152FFFF |
| RGB (CSS) | rgb(209, 82, 255) |
| RGBA (CSS) | rgba(209, 82, 255, 1) |
| HSL (CSS) | hsl(284, 100%, 66%) |
| HSLA (CSS) | hsla(284, 100%, 66%, 1) |
| HSV / HSB | (284°, 68%, 100%) |
| CMYK Values | (18%, 68%, 0%, 0%) |
| OKLCH (Modern CSS) | oklch(67.7% 0.256 315.6) |
| CIE-LAB (D65) | 58.80, 73.98, -63.66 |
| CIE XYZ | 47.36, 26.81, 97.27 |
| Decimal / Binary |
13718271
11010001 01010010 11111111 |
Closest Standards & Equivalents
| Closest Web Safe | #CC66FF |
| Inverse Color | #2EAD00 |
| Complementary Color | #80FF52 |
| Closest Pantone® | Pantone 252 C |
| Closest RAL | RAL 4003 [Heather violet] |
#D152FF Grayscale Equivalents
| Average | #B6B6B6 |
| Lightness (Desaturation) | #A9A9A9 [Dark Medium Gray] |
| Weighted (BT601) | #8C8C8C |
| Luma (BT709) | #797979 |
WCAG 2.1 Color Contrast & Accessibility
Check how #D152FF 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 #D152FF
Sample preview of readable typography on top of #D152FF.
Black Text on #D152FF
Sample preview of readable typography on top of #D152FF.
HTML / CSS Live Previews & Snippets for #D152FF
Preview #D152FF in real UI elements and copy ready-to-use CSS rules.
background-color: #D152FF;
color: #D152FF;
border: 2px solid #D152FF;
:root {
--color-primary: #D152FF;
--color-primary-rgb: 209, 82, 255;
--color-complementary: #80FF52;
}
.btn-accent {
background-color: #D152FF;
color: #000000;
}
Hex #D152FF Color Palettes
Complementary Palette
The complementary color of #D152FF is #80FF52. 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 #D152FF pairs with #7A52FF and #FF52D6, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.
Split-Complementary Palette
The split-complementary scheme of #D152FF pairs with #52FF7A and #D6FF52, delivering strong contrast while remaining easier to balance than a direct complement.
Triadic Palette
The triadic color scheme of #D152FF uses #52FFD1 and #FFD152, spaced 120° apart for balanced, high-energy contrast.
Tetradic Palette
The tetradic color scheme of #D152FF combines #FFD152, #80FF52 and #5280FF around the color wheel for rich multi-accent UI systems.
Square Palette
The square color scheme of #D152FF pairs with #FF7A52, #80FF52 and #52D6FF spaced evenly at 90° intervals.
Tints, Tones & Shades of Hex #D152FF
Tints
Tints are created by mixing #D152FF with white, producing lighter variations.
Tones
Tones are created by mixing #D152FF with gray, softening saturation.
Shades
Shades result from mixing #D152FF with black, creating deeper variations.
Hex #D152FF in Programming & CSS Frameworks
Copy the exact syntax for #D152FF in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:
| HTML / CSS | #D152FF |
| Tailwind CSS | bg-[#D152FF] text-[#D152FF] |
| Java (AWT) | new Color(209,82,255); |
| Python | Color("#D152FF") |
| .NET (C#) | Color.FromArgb(255, 209,82,255); |
| Swift / iOS | UIColor(red: 0.82, green: 0.32, blue: 1, alpha: 1) |
| Kotlin / Android | Color.rgb(209, 82, 255) |