What is hex #A271DF color?

 
The hex code #A271DF is closest to the named color Medium Purple (#9370DB).
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 64% red, 44% green and 87% blue, resulting in rgb(162, 113, 223) and hsl(267, 63%, 66%).
For print media and manufacturing layout, the CMYK equivalent is (27%, 49%, 0%, 13%).
In the HSV/HSB scale, #A271DF features a hue of 267°, 49% saturation, and 87% brightness.

Hex #A271DF Color Codes & Conversions

Closest Named Color
Medium Purple (#9370DB)
Hex Code #A271DF
Hex8 (RGBA Hex) #A271DFFF
RGB (CSS) rgb(162, 113, 223)
RGBA (CSS) rgba(162, 113, 223, 1)
HSL (CSS) hsl(267, 63%, 66%)
HSLA (CSS) hsla(267, 63%, 66%, 1)
HSV / HSB (267°, 49%, 87%)
CMYK Values (27%, 49%, 0%, 13%)
OKLCH (Modern CSS) oklch(64.5% 0.164 302.6)
CIE-LAB (D65) 56.90, 41.14, -49.19
CIE XYZ 34.12, 24.82, 72.79
Decimal / Binary 10645983
10100010 01110001 11011111

Closest Standards & Equivalents

Closest Web Safe
#9966CC [Amethyst]
Inverse Color
#5D8E20
Complementary Color
#AEDF71
Closest Pantone®
Pantone 2655 C
Closest RAL
RAL 4009 [Pastel violet]

#A271DF Grayscale Equivalents

Average
#A6A6A6
Lightness (Desaturation)
#A8A8A8
Weighted (BT601)
#8C8C8C
Luma (BT709)
#838383

WCAG 2.1 Color Contrast & Accessibility

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

Sample preview of readable typography on top of #A271DF.

Contrast Ratio: 3.52:1
AA Fail AAA Fail

Black Text on #A271DF

Sample preview of readable typography on top of #A271DF.

Contrast Ratio: 5.96:1
AA Pass AAA Fail

HTML / CSS Live Previews & Snippets for #A271DF

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

Background Preview
background-color: #A271DF;
Typography Color Preview
color: #A271DF;
Border & Shadow Preview
border: 2px solid #A271DF;
CSS Custom Properties & Gradient
:root {
  --color-primary: #A271DF;
  --color-primary-rgb: 162, 113, 223;
  --color-complementary: #AEDF71;
}
.btn-accent {
  background-color: #A271DF;
  color: #000000;
}

Hex #A271DF Color Palettes

Complementary Palette

The complementary color of #A271DF is #AEDF71. 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 #A271DF pairs with #7177DF and #D971DF, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

The split-complementary scheme of #A271DF pairs with #77DF71 and #DFD971, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #A271DF uses #71DFA2 and #DFA271, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #A271DF combines #DFA271, #AEDF71 and #71AEDF around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #A271DF pairs with #DF7177, #AEDF71 and #71DFD9 spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #A271DF

Tints

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

Tones

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

Shades

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

Hex #A271DF in Programming & CSS Frameworks

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

HTML / CSS #A271DF
Tailwind CSS bg-[#A271DF] text-[#A271DF]
Java (AWT) new Color(162,113,223);
Python Color("#A271DF")
.NET (C#) Color.FromArgb(255, 162,113,223);
Swift / iOS UIColor(red: 0.64, green: 0.44, blue: 0.87, alpha: 1)
Kotlin / Android Color.rgb(162, 113, 223)