What is hex #B021FF color?

 
The hex code #B021FF is closest to the named color Electric Purple (#BF00FF).
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, 13% green and 100% blue, resulting in rgb(176, 33, 255) and hsl(279, 100%, 56%).
For print media and manufacturing layout, the CMYK equivalent is (31%, 87%, 0%, 0%).
In the HSV/HSB scale, #B021FF features a hue of 279°, 87% saturation, and 100% brightness.

Hex #B021FF Color Codes & Conversions

Closest Named Color
Electric Purple (#BF00FF)
Hex Code #B021FF
Hex8 (RGBA Hex) #B021FFFF
RGB (CSS) rgb(176, 33, 255)
RGBA (CSS) rgba(176, 33, 255, 1)
HSL (CSS) hsl(279, 100%, 56%)
HSLA (CSS) hsla(279, 100%, 56%, 1)
HSV / HSB (279°, 87%, 100%)
CMYK Values (31%, 87%, 0%, 0%)
OKLCH (Modern CSS) oklch(59.8% 0.289 308.2)
CIE-LAB (D65) 48.93, 83.54, -79.86
CIE XYZ 36.49, 17.54, 96.05
Decimal / Binary 11543039
10110000 00100001 11111111

Closest Standards & Equivalents

Closest Web Safe
#9933FF
Inverse Color
#4FDE00
Complementary Color
#70FF21
Closest Pantone®
Pantone Purple C
Closest RAL
RAL 4010 [Telemagenta]

#B021FF Grayscale Equivalents

Average
#9B9B9B
Lightness (Desaturation)
#909090
Weighted (BT601)
#656565
Luma (BT709)
#4F4F4F

WCAG 2.1 Color Contrast & Accessibility

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

Sample preview of readable typography on top of #B021FF.

Contrast Ratio: 4.66:1
AA Pass AAA Fail

Black Text on #B021FF

Sample preview of readable typography on top of #B021FF.

Contrast Ratio: 4.51:1
AA Pass AAA Fail

HTML / CSS Live Previews & Snippets for #B021FF

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

Background Preview
background-color: #B021FF;
Typography Color Preview
color: #B021FF;
Border & Shadow Preview
border: 2px solid #B021FF;
CSS Custom Properties & Gradient
:root {
  --color-primary: #B021FF;
  --color-primary-rgb: 176, 33, 255;
  --color-complementary: #70FF21;
}
.btn-accent {
  background-color: #B021FF;
  color: #ffffff;
}

Hex #B021FF Color Palettes

Complementary Palette

The complementary color of #B021FF is #70FF21. 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 #B021FF pairs with #4121FF and #FF21DF, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

The split-complementary scheme of #B021FF pairs with #21FF41 and #DFFF21, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #B021FF uses #21FFB0 and #FFB021, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #B021FF combines #FFB021, #70FF21 and #2170FF around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #B021FF pairs with #FF4121, #70FF21 and #21DFFF spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #B021FF

Tints

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

Tones

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

Shades

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

Hex #B021FF in Programming & CSS Frameworks

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

HTML / CSS #B021FF
Tailwind CSS bg-[#B021FF] text-[#B021FF]
Java (AWT) new Color(176,33,255);
Python Color("#B021FF")
.NET (C#) Color.FromArgb(255, 176,33,255);
Swift / iOS UIColor(red: 0.69, green: 0.13, blue: 1, alpha: 1)
Kotlin / Android Color.rgb(176, 33, 255)