What is hex #FFAFE2 color?

 
The hex code #FFAFE2 is closest to the named color Cotton Candy (#FFBCD9).
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 100% red, 69% green and 89% blue, resulting in rgb(255, 175, 226) and hsl(322, 100%, 84%).
For print media and manufacturing layout, the CMYK equivalent is (0%, 31%, 11%, 0%).
In the HSV/HSB scale, #FFAFE2 features a hue of 322°, 31% saturation, and 100% brightness.

Hex #FFAFE2 Color Codes & Conversions

Closest Named Color
Cotton Candy (#FFBCD9)
Hex Code #FFAFE2
Hex8 (RGBA Hex) #FFAFE2FF
RGB (CSS) rgb(255, 175, 226)
RGBA (CSS) rgba(255, 175, 226, 1)
HSL (CSS) hsl(322, 100%, 84%)
HSLA (CSS) hsla(322, 100%, 84%, 1)
HSV / HSB (322°, 31%, 100%)
CMYK Values (0%, 31%, 11%, 0%)
OKLCH (Modern CSS) oklch(84.5% 0.113 341.2)
CIE-LAB (D65) 80.41, 36.60, -13.73
CIE XYZ 70.30, 57.41, 79.32
Decimal / Binary 16756706
11111111 10101111 11100010

Closest Standards & Equivalents

Closest Web Safe
#FF99CC
Inverse Color
#00501D
Complementary Color
#AFFFCC
Closest Pantone®
Pantone Magenta 0521 C
Closest RAL
RAL 9010 [Pure white]

#FFAFE2 Grayscale Equivalents

Average
#DBDBDB
Lightness (Desaturation)
#D7D7D7
Weighted (BT601)
#CDCDCD
Luma (BT709)
#C4C4C4

WCAG 2.1 Color Contrast & Accessibility

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

Sample preview of readable typography on top of #FFAFE2.

Contrast Ratio: 1.68:1
AA Fail AAA Fail

Black Text on #FFAFE2

Sample preview of readable typography on top of #FFAFE2.

Contrast Ratio: 12.48:1
AA Pass AAA Pass

HTML / CSS Live Previews & Snippets for #FFAFE2

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

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

Hex #FFAFE2 Color Palettes

Complementary Palette

The complementary color of #FFAFE2 is #AFFFCC. 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 #FFAFE2 pairs with #F4AFFF and #FFAFBA, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

The split-complementary scheme of #FFAFE2 pairs with #AFFFF4 and #BAFFAF, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #FFAFE2 uses #AFE2FF and #E2FFAF, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #FFAFE2 combines #E2FFAF, #AFFFCC and #CCAFFF around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #FFAFE2 pairs with #FFF4AF, #AFFFCC and #AFBAFF spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #FFAFE2

Tints

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

Tones

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

Shades

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

Hex #FFAFE2 in Programming & CSS Frameworks

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

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