What is hex #AFA5FA 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 69% red, 65% green and 98% blue, resulting in rgb(175, 165, 250) and hsl(247, 89%, 81%).
For print media and manufacturing layout, the CMYK equivalent is (30%, 34%, 0%, 2%).
In the HSV/HSB scale, #AFA5FA features a hue of 247°, 34% saturation, and 98% brightness.
Hex #AFA5FA Color Codes & Conversions
| Closest Named Color | Bright Lavender (#BF94E4) |
| Hex Code | #AFA5FA |
| Hex8 (RGBA Hex) | #AFA5FAFF |
| RGB (CSS) | rgb(175, 165, 250) |
| RGBA (CSS) | rgba(175, 165, 250, 1) |
| HSL (CSS) | hsl(247, 89%, 81%) |
| HSLA (CSS) | hsla(247, 89%, 81%, 1) |
| HSV / HSB | (247°, 34%, 98%) |
| CMYK Values | (30%, 34%, 0%, 2%) |
| OKLCH (Modern CSS) | oklch(76.3% 0.121 288.6) |
| CIE-LAB (D65) | 71.50, 22.06, -41.02 |
| CIE XYZ | 48.39, 42.93, 96.16 |
| Decimal / Binary |
11511290
10101111 10100101 11111010 |
WCAG 2.1 Color Contrast & Accessibility
Check how #AFA5FA 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 #AFA5FA
Sample preview of readable typography on top of #AFA5FA.
Black Text on #AFA5FA
Sample preview of readable typography on top of #AFA5FA.
HTML / CSS Live Previews & Snippets for #AFA5FA
Preview #AFA5FA in real UI elements and copy ready-to-use CSS rules.
background-color: #AFA5FA;
color: #AFA5FA;
border: 2px solid #AFA5FA;
:root {
--color-primary: #AFA5FA;
--color-primary-rgb: 175, 165, 250;
--color-complementary: #F0FAA5;
}
.btn-accent {
background-color: #AFA5FA;
color: #000000;
}
Hex #AFA5FA Color Palettes
Complementary Palette
The complementary color of #AFA5FA is #F0FAA5. 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 #AFA5FA pairs with #A5C5FA and #D9A5FA, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.
Split-Complementary Palette
The split-complementary scheme of #AFA5FA pairs with #C5FAA5 and #FAD9A5, delivering strong contrast while remaining easier to balance than a direct complement.
Triadic Palette
The triadic color scheme of #AFA5FA uses #A5FAAF and #FAAFA5, spaced 120° apart for balanced, high-energy contrast.
Tetradic Palette
The tetradic color scheme of #AFA5FA combines #FAAFA5, #F0FAA5 and #A5F0FA around the color wheel for rich multi-accent UI systems.
Square Palette
The square color scheme of #AFA5FA pairs with #FAA5C5, #F0FAA5 and #A5FAD9 spaced evenly at 90° intervals.
Tints, Tones & Shades of Hex #AFA5FA
Tints
Tints are created by mixing #AFA5FA with white, producing lighter variations.
Tones
Tones are created by mixing #AFA5FA with gray, softening saturation.
Shades
Shades result from mixing #AFA5FA with black, creating deeper variations.
Hex #AFA5FA in Programming & CSS Frameworks
Copy the exact syntax for #AFA5FA in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:
| HTML / CSS | #AFA5FA |
| Tailwind CSS | bg-[#AFA5FA] text-[#AFA5FA] |
| Java (AWT) | new Color(175,165,250); |
| Python | Color("#AFA5FA") |
| .NET (C#) | Color.FromArgb(255, 175,165,250); |
| Swift / iOS | UIColor(red: 0.69, green: 0.65, blue: 0.98, alpha: 1) |
| Kotlin / Android | Color.rgb(175, 165, 250) |