What is hex #B040FF color?
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 69% red, 25% green and 100% blue, resulting in rgb(176, 64, 255) and hsl(275, 100%, 63%).
For print media and manufacturing layout, the CMYK equivalent is (31%, 75%, 0%, 0%).
In the HSV/HSB scale, #B040FF features a hue of 275°, 75% saturation, and 100% brightness.
Hex #B040FF Color Codes & Conversions
| Closest Named Color | Blue Violet (#8A2BE2) |
| Hex Code | #B040FF |
| Hex8 (RGBA Hex) | #B040FFFF |
| RGB (CSS) | rgb(176, 64, 255) |
| RGBA (CSS) | rgba(176, 64, 255, 1) |
| HSL (CSS) | hsl(275, 100%, 63%) |
| HSLA (CSS) | hsla(275, 100%, 63%, 1) |
| HSV / HSB | (275°, 75%, 100%) |
| CMYK Values | (31%, 75%, 0%, 0%) |
| OKLCH (Modern CSS) | oklch(62.0% 0.266 306.7) |
| CIE-LAB (D65) | 51.97, 74.67, -74.91 |
| CIE XYZ | 37.78, 20.12, 96.48 |
| Decimal / Binary |
11550975
10110000 01000000 11111111 |
WCAG 2.1 Color Contrast & Accessibility
Check how #B040FF 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 #B040FF
Sample preview of readable typography on top of #B040FF.
Black Text on #B040FF
Sample preview of readable typography on top of #B040FF.
HTML / CSS Live Previews & Snippets for #B040FF
Preview #B040FF in real UI elements and copy ready-to-use CSS rules.
background-color: #B040FF;
color: #B040FF;
border: 2px solid #B040FF;
:root {
--color-primary: #B040FF;
--color-primary-rgb: 176, 64, 255;
--color-complementary: #8FFF40;
}
.btn-accent {
background-color: #B040FF;
color: #000000;
}
Hex #B040FF Color Palettes
Complementary Palette
The complementary color of #B040FF is #8FFF40. 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 #B040FF pairs with #5040FF and #FF40EE, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.
Split-Complementary Palette
The split-complementary scheme of #B040FF pairs with #40FF50 and #EEFF40, delivering strong contrast while remaining easier to balance than a direct complement.
Triadic Palette
The triadic color scheme of #B040FF uses #40FFB0 and #FFB040, spaced 120° apart for balanced, high-energy contrast.
Tetradic Palette
The tetradic color scheme of #B040FF combines #FFB040, #8FFF40 and #408FFF around the color wheel for rich multi-accent UI systems.
Square Palette
The square color scheme of #B040FF pairs with #FF5040, #8FFF40 and #40EEFF spaced evenly at 90° intervals.
Tints, Tones & Shades of Hex #B040FF
Tints
Tints are created by mixing #B040FF with white, producing lighter variations.
Tones
Tones are created by mixing #B040FF with gray, softening saturation.
Shades
Shades result from mixing #B040FF with black, creating deeper variations.
Hex #B040FF in Programming & CSS Frameworks
Copy the exact syntax for #B040FF in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:
| HTML / CSS | #B040FF |
| Tailwind CSS | bg-[#B040FF] text-[#B040FF] |
| Java (AWT) | new Color(176,64,255); |
| Python | Color("#B040FF") |
| .NET (C#) | Color.FromArgb(255, 176,64,255); |
| Swift / iOS | UIColor(red: 0.69, green: 0.25, blue: 1, alpha: 1) |
| Kotlin / Android | Color.rgb(176, 64, 255) |