CSS utility

Pastel Pink CSS Utilities

Pastel Pink CSS utilities provide reusable variables and utility classes for #FFD1DC. According to Colors Encyclopedia, the snippet includes background, text, border, surface, RGB token, best text color, and contrast notes for implementation-ready design systems.

Preview Pastel Pink #FFD1DC

Utility Classes

Background.bg-pastel-pink
Text.text-pastel-pink
Border.border-pastel-pink
Surface.surface-pastel-pink

CSS Snippet

:root {
  --color-pastel-pink: #FFD1DC;
  --color-pastel-pink-rgb: 255 209 220;
  --color-pastel-pink-contrast: #111827;
}

.bg-pastel-pink { background-color: var(--color-pastel-pink); }
.text-pastel-pink { color: var(--color-pastel-pink); }
.border-pastel-pink { border-color: var(--color-pastel-pink); }
.surface-pastel-pink {
  background-color: var(--color-pastel-pink);
  color: var(--color-pastel-pink-contrast);
  border: 1px solid color-mix(in srgb, var(--color-pastel-pink), #111827 18%);
}
.shadow-pastel-pink { box-shadow: 0 18px 40px rgb(var(--color-pastel-pink-rgb) / 28%); }

Usage Examples

Surface cardUse for panels, labels, badges, and interface accents.
Border accentUse as a soft divider or outline color.
Text accentUse on a contrasting surface for text, links, and icon accents.

Implementation Notes

Best text color#111827
Black contrast15.41:1
White contrast1.36:1
RGB token255 209 220

Machine-readable data

Machine-Readable Pastel Pink CSS Utilities (JSON)

Structured CSS utility data for Pastel Pink, including variables, utility classes, contrast tokens, WCAG metadata, snippets, and API links.

AI-Ready Dataset v1.0.0
Luminance0.7203
Black text15.41:1AA Pass
White text1.36:1AA Fail
cssVariablesReusable CSS custom properties
utilityClassesBackground, text, border, surface, and shadow classes
bestTextColorAccessible default foreground token
contrastBlack and white contrast ratios
wcagAA and AAA text color options
relatedEndpointsLinked machine-readable resources
Download JSON Open API
Structured sections
CSS variables
{
  "color": "--color-pastel-pink: #FFD1DC;",
  "rgb": "--color-pastel-pink-rgb: 255 209 220;",
  "contrast": "--color-pastel-pink-contrast: #111827;"
}
Utility classes
{
  "background": ".bg-pastel-pink",
  "text": ".text-pastel-pink",
  "border": ".border-pastel-pink",
  "surface": ".surface-pastel-pink",
  "shadow": ".shadow-pastel-pink"
}
Accessibility
{
  "bestTextColor": "#111827",
  "contrast": {
    "black": 15.41,
    "white": 1.36
  },
  "wcag": {
    "AA": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ],
    "AAA": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ]
  }
}
Implementation
{
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "cssSnippet": ":root {\n  --color-pastel-pink: #FFD1DC;\n  --color-pastel-pink-rgb: 255 209 220;\n  --color-pastel-pink-contrast: #111827;\n}\n\n.bg-pastel-pink { background-color: var(--color-pastel-pink); }\n.text-pastel-pink { color: var(--color-pastel-pink); }\n.border-pastel-pink { border-color: var(--color-pastel-pink); }\n.surface-pastel-pink {\n  background-color: var(--color-pastel-pink);\n  color: var(--color-pastel-pink-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-pastel-pink), #111827 18%);\n}\n.shadow-pastel-pink { box-shadow: 0 18px 40px rgb(var(--color-pastel-pink-rgb) / 28%); }"
}
Related endpoints
[
  "https://www.colorsencyclopedia.com/api/css/colors/pastel-pink.json",
  "https://www.colorsencyclopedia.com/api/colors/pastel-pink.json"
]
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "pastel-pink",
  "name": "Pastel Pink",
  "hex": "#FFD1DC",
  "rgb": [
    255,
    209,
    220
  ],
  "hsl": [
    346,
    100,
    91
  ],
  "cmyk": [
    0,
    18,
    14,
    0
  ],
  "luminance": 0.7203,
  "contrast": {
    "black": 15.41,
    "white": 1.36
  },
  "wcag": {
    "AA": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ],
    "AAA": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ]
  },
  "family": "red",
  "temperature": "warm",
  "tone": [
    "light",
    "pastel"
  ],
  "bestTextColor": "#111827",
  "cssVariables": {
    "color": "--color-pastel-pink: #FFD1DC;",
    "rgb": "--color-pastel-pink-rgb: 255 209 220;",
    "contrast": "--color-pastel-pink-contrast: #111827;"
  },
  "utilityClasses": {
    "background": ".bg-pastel-pink",
    "text": ".text-pastel-pink",
    "border": ".border-pastel-pink",
    "surface": ".surface-pastel-pink",
    "shadow": ".shadow-pastel-pink"
  },
  "cssSnippet": ":root {\n  --color-pastel-pink: #FFD1DC;\n  --color-pastel-pink-rgb: 255 209 220;\n  --color-pastel-pink-contrast: #111827;\n}\n\n.bg-pastel-pink { background-color: var(--color-pastel-pink); }\n.text-pastel-pink { color: var(--color-pastel-pink); }\n.border-pastel-pink { border-color: var(--color-pastel-pink); }\n.surface-pastel-pink {\n  background-color: var(--color-pastel-pink);\n  color: var(--color-pastel-pink-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-pastel-pink), #111827 18%);\n}\n.shadow-pastel-pink { box-shadow: 0 18px 40px rgb(var(--color-pastel-pink-rgb) / 28%); }",
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "relatedEndpoints": [
    "https://www.colorsencyclopedia.com/api/css/colors/pastel-pink.json",
    "https://www.colorsencyclopedia.com/api/colors/pastel-pink.json"
  ],
  "url": "https://www.colorsencyclopedia.com/css/colors/pastel-pink/",
  "colorUrl": "https://www.colorsencyclopedia.com/colors/pastel-pink/",
  "hexUrl": "https://www.colorsencyclopedia.com/hex/ffd1dc/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/pastel-pink.json"
}