What is hex #AF2DFF color?

 
The hex code #AF2DFF 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, 45, 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, #AF2DFF features a hue of 277°, 82% saturation, and 100% brightness.

Hex #AF2DFF Color Codes & Conversions

Closest Named Color
Blue Violet (#8A2BE2)
Hex Code #AF2DFF
Hex8 (RGBA Hex) #AF2DFFFF
RGB (CSS) rgb(175, 45, 255)
RGBA (CSS) rgba(175, 45, 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.4% 0.281 307.4)
CIE-LAB (D65) 49.75, 80.56, -78.53
CIE XYZ 36.66, 18.21, 96.17
Decimal / Binary 11480575
10101111 00101101 11111111

Closest Standards & Equivalents

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

#AF2DFF Grayscale Equivalents

Average
#9E9E9E
Lightness (Desaturation)
#969696
Weighted (BT601)
#6C6C6C
Luma (BT709)
#585858

WCAG 2.1 Color Contrast & Accessibility

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

Sample preview of readable typography on top of #AF2DFF.

Contrast Ratio: 4.52:1
AA Pass AAA Fail

Black Text on #AF2DFF

Sample preview of readable typography on top of #AF2DFF.

Contrast Ratio: 4.64:1
AA Pass AAA Fail

HTML / CSS Live Previews & Snippets for #AF2DFF

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

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

Hex #AF2DFF Color Palettes

Complementary Palette

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

Split-Complementary Palette

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

Triadic Palette

The triadic color scheme of #AF2DFF uses #2DFFAF and #FFAF2D, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #AF2DFF combines #FFAF2D, #7DFF2D and #2D7DFF around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #AF2DFF pairs with #FF462D, #7DFF2D and #2DE6FF spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #AF2DFF

Tints

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

Tones

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

Shades

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

Hex #AF2DFF in Programming & CSS Frameworks

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

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