What is hex #AF2EFF color?

 
The hex code #AF2EFF is closest to the named color Blue Violet (#8A2BE2).
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, 18% green and 100% blue, resulting in rgb(175, 46, 255) and hsl(277, 100%, 59%).
For print media and manufacturing layout, the CMYK equivalent is (31%, 82%, 0%, 0%).
In the HSV/HSB scale, #AF2EFF features a hue of 277°, 82% saturation, and 100% brightness.

Hex #AF2EFF Color Codes & Conversions

Closest Named Color
Blue Violet (#8A2BE2)
Hex Code #AF2EFF
Hex8 (RGBA Hex) #AF2EFFFF
RGB (CSS) rgb(175, 46, 255)
RGBA (CSS) rgba(175, 46, 255, 1)
HSL (CSS) hsl(277, 100%, 59%)
HSLA (CSS) hsla(277, 100%, 59%, 1)
HSV / HSB (277°, 82%, 100%)
CMYK Values (31%, 82%, 0%, 0%)
OKLCH (Modern CSS) oklch(60.5% 0.281 307.4)
CIE-LAB (D65) 49.84, 80.29, -78.38
CIE XYZ 36.70, 18.29, 96.18
Decimal / Binary 11480831
10101111 00101110 11111111

Closest Standards & Equivalents

Closest Web Safe
#9933FF
Inverse Color
#50D100
Complementary Color
#7EFF2E
Closest Pantone®
Pantone Purple C
Closest RAL
RAL 4010 [Telemagenta]

#AF2EFF Grayscale Equivalents

Average
#9F9F9F
Lightness (Desaturation)
#979797
Weighted (BT601)
#6C6C6C
Luma (BT709)
#595959

WCAG 2.1 Color Contrast & Accessibility

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

Sample preview of readable typography on top of #AF2EFF.

Contrast Ratio: 4.51:1
AA Pass AAA Fail

Black Text on #AF2EFF

Sample preview of readable typography on top of #AF2EFF.

Contrast Ratio: 4.66:1
AA Pass AAA Fail

HTML / CSS Live Previews & Snippets for #AF2EFF

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

Background Preview
background-color: #AF2EFF;
Typography Color Preview
color: #AF2EFF;
Border & Shadow Preview
border: 2px solid #AF2EFF;
CSS Custom Properties & Gradient
:root {
  --color-primary: #AF2EFF;
  --color-primary-rgb: 175, 46, 255;
  --color-complementary: #7EFF2E;
}
.btn-accent {
  background-color: #AF2EFF;
  color: #000000;
}

Hex #AF2EFF Color Palettes

Complementary Palette

The complementary color of #AF2EFF is #7EFF2E. 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 #AF2EFF pairs with #462EFF and #FF2EE6, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

The split-complementary scheme of #AF2EFF pairs with #2EFF46 and #E6FF2E, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #AF2EFF uses #2EFFAF and #FFAF2E, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #AF2EFF combines #FFAF2E, #7EFF2E and #2E7EFF around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #AF2EFF pairs with #FF462E, #7EFF2E and #2EE6FF spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #AF2EFF

Tints

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

Tones

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

Shades

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

Hex #AF2EFF in Programming & CSS Frameworks

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

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