What is hex #FFAFE3 color?

 
The hex code #FFAFE3 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, 227) and hsl(321, 100%, 84%).
For print media and manufacturing layout, the CMYK equivalent is (0%, 31%, 11%, 0%).
In the HSV/HSB scale, #FFAFE3 features a hue of 321°, 31% saturation, and 100% brightness.

Hex #FFAFE3 Color Codes & Conversions

Closest Named Color
Cotton Candy (#FFBCD9)
Hex Code #FFAFE3
Hex8 (RGBA Hex) #FFAFE3FF
RGB (CSS) rgb(255, 175, 227)
RGBA (CSS) rgba(255, 175, 227, 1)
HSL (CSS) hsl(321, 100%, 84%)
HSLA (CSS) hsla(321, 100%, 84%, 1)
HSV / HSB (321°, 31%, 100%)
CMYK Values (0%, 31%, 11%, 0%)
OKLCH (Modern CSS) oklch(84.6% 0.113 340.6)
CIE-LAB (D65) 80.44, 36.76, -14.22
CIE XYZ 70.43, 57.47, 80.04
Decimal / Binary 16756707
11111111 10101111 11100011

Closest Standards & Equivalents

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

#FFAFE3 Grayscale Equivalents

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

WCAG 2.1 Color Contrast & Accessibility

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

Sample preview of readable typography on top of #FFAFE3.

Contrast Ratio: 1.68:1
AA Fail AAA Fail

Black Text on #FFAFE3

Sample preview of readable typography on top of #FFAFE3.

Contrast Ratio: 12.49:1
AA Pass AAA Pass

HTML / CSS Live Previews & Snippets for #FFAFE3

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

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

Hex #FFAFE3 Color Palettes

Complementary Palette

The complementary color of #FFAFE3 is #AFFFCB. 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 #FFAFE3 pairs with #F3AFFF and #FFAFBB, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

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

Triadic Palette

The triadic color scheme of #FFAFE3 uses #AFE3FF and #E3FFAF, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #FFAFE3 combines #E3FFAF, #AFFFCB and #CBAFFF around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #FFAFE3 pairs with #FFF3AF, #AFFFCB and #AFBBFF spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #FFAFE3

Tints

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

Tones

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

Shades

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

Hex #FFAFE3 in Programming & CSS Frameworks

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

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