What is hex #D797FF 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 84% red, 59% green and 100% blue, resulting in rgb(215, 151, 255) and hsl(277, 100%, 80%).
For print media and manufacturing layout, the CMYK equivalent is (16%, 41%, 0%, 0%).
In the HSV/HSB scale, #D797FF features a hue of 277°, 41% saturation, and 100% brightness.
Hex #D797FF Color Codes & Conversions
| Closest Named Color | Bright Lilac (#D891EF) |
| Hex Code | #D797FF |
| Hex8 (RGBA Hex) | #D797FFFF |
| RGB (CSS) | rgb(215, 151, 255) |
| RGBA (CSS) | rgba(215, 151, 255, 1) |
| HSL (CSS) | hsl(277, 100%, 80%) |
| HSLA (CSS) | hsla(277, 100%, 80%, 1) |
| HSV / HSB | (277°, 41%, 100%) |
| CMYK Values | (16%, 41%, 0%, 0%) |
| OKLCH (Modern CSS) | oklch(77.7% 0.157 311.5) |
| CIE-LAB (D65) | 72.10, 42.26, -42.54 |
| CIE XYZ | 57.14, 43.80, 100.03 |
| Decimal / Binary |
14129151
11010111 10010111 11111111 |
WCAG 2.1 Color Contrast & Accessibility
Check how #D797FF 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 #D797FF
Sample preview of readable typography on top of #D797FF.
Black Text on #D797FF
Sample preview of readable typography on top of #D797FF.
HTML / CSS Live Previews & Snippets for #D797FF
Preview #D797FF in real UI elements and copy ready-to-use CSS rules.
background-color: #D797FF;
color: #D797FF;
border: 2px solid #D797FF;
:root {
--color-primary: #D797FF;
--color-primary-rgb: 215, 151, 255;
--color-complementary: #BFFF97;
}
.btn-accent {
background-color: #D797FF;
color: #000000;
}
Hex #D797FF Color Palettes
Complementary Palette
The complementary color of #D797FF is #BFFF97. 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 #D797FF pairs with #A397FF and #FF97F3, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.
Split-Complementary Palette
The split-complementary scheme of #D797FF pairs with #97FFA3 and #F3FF97, delivering strong contrast while remaining easier to balance than a direct complement.
Triadic Palette
The triadic color scheme of #D797FF uses #97FFD7 and #FFD797, spaced 120° apart for balanced, high-energy contrast.
Tetradic Palette
The tetradic color scheme of #D797FF combines #FFD797, #BFFF97 and #97BFFF around the color wheel for rich multi-accent UI systems.
Square Palette
The square color scheme of #D797FF pairs with #FFA397, #BFFF97 and #97F3FF spaced evenly at 90° intervals.
Tints, Tones & Shades of Hex #D797FF
Tints
Tints are created by mixing #D797FF with white, producing lighter variations.
Tones
Tones are created by mixing #D797FF with gray, softening saturation.
Shades
Shades result from mixing #D797FF with black, creating deeper variations.
Hex #D797FF in Programming & CSS Frameworks
Copy the exact syntax for #D797FF in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:
| HTML / CSS | #D797FF |
| Tailwind CSS | bg-[#D797FF] text-[#D797FF] |
| Java (AWT) | new Color(215,151,255); |
| Python | Color("#D797FF") |
| .NET (C#) | Color.FromArgb(255, 215,151,255); |
| Swift / iOS | UIColor(red: 0.84, green: 0.59, blue: 1, alpha: 1) |
| Kotlin / Android | Color.rgb(215, 151, 255) |