What is hex #FFB4E2 color?

 
The hex code #FFB4E2 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, 71% green and 89% blue, resulting in rgb(255, 180, 226) and hsl(323, 100%, 85%).
For print media and manufacturing layout, the CMYK equivalent is (0%, 29%, 11%, 0%).
In the HSV/HSB scale, #FFB4E2 features a hue of 323°, 29% saturation, and 100% brightness.

Hex #FFB4E2 Color Codes & Conversions

Closest Named Color
Cotton Candy (#FFBCD9)
Hex Code #FFB4E2
Hex8 (RGBA Hex) #FFB4E2FF
RGB (CSS) rgb(255, 180, 226)
RGBA (CSS) rgba(255, 180, 226, 1)
HSL (CSS) hsl(323, 100%, 85%)
HSLA (CSS) hsla(323, 100%, 85%, 1)
HSV / HSB (323°, 29%, 100%)
CMYK Values (0%, 29%, 11%, 0%)
OKLCH (Modern CSS) oklch(85.4% 0.104 342.2)
CIE-LAB (D65) 81.51, 33.99, -12.09
CIE XYZ 71.29, 59.40, 79.65
Decimal / Binary 16757986
11111111 10110100 11100010

Closest Standards & Equivalents

Closest Web Safe
#FFCCCC
Inverse Color
#004B1D
Complementary Color
#B4FFD1
Closest Pantone®
Pantone Magenta 0521 C
Closest RAL
RAL 9010 [Pure white]

#FFB4E2 Grayscale Equivalents

Average
#DCDCDC [Gainsboro]
Lightness (Desaturation)
#DADADA
Weighted (BT601)
#D0D0D0
Luma (BT709)
#C7C7C7

WCAG 2.1 Color Contrast & Accessibility

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

Sample preview of readable typography on top of #FFB4E2.

Contrast Ratio: 1.63:1
AA Fail AAA Fail

Black Text on #FFB4E2

Sample preview of readable typography on top of #FFB4E2.

Contrast Ratio: 12.88:1
AA Pass AAA Pass

HTML / CSS Live Previews & Snippets for #FFB4E2

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

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

Hex #FFB4E2 Color Palettes

Complementary Palette

The complementary color of #FFB4E2 is #B4FFD1. 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 #FFB4E2 pairs with #F6B4FF and #FFB4BC, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

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

Triadic Palette

The triadic color scheme of #FFB4E2 uses #B4E2FF and #E2FFB4, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #FFB4E2 combines #E2FFB4, #B4FFD1 and #D1B4FF around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #FFB4E2 pairs with #FFF6B4, #B4FFD1 and #B4BCFF spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #FFB4E2

Tints

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

Tones

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

Shades

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

Hex #FFB4E2 in Programming & CSS Frameworks

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

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