CSS utility

Pastel Yellow CSS Utilities

Pastel Yellow CSS utilities provide reusable variables and utility classes for #FDFD96. 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 Yellow #FDFD96

Utility Classes

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

CSS Snippet

:root {
  --color-pastel-yellow: #FDFD96;
  --color-pastel-yellow-rgb: 253 253 150;
  --color-pastel-yellow-contrast: #111827;
}

.bg-pastel-yellow { background-color: var(--color-pastel-yellow); }
.text-pastel-yellow { color: var(--color-pastel-yellow); }
.border-pastel-yellow { border-color: var(--color-pastel-yellow); }
.surface-pastel-yellow {
  background-color: var(--color-pastel-yellow);
  color: var(--color-pastel-yellow-contrast);
  border: 1px solid color-mix(in srgb, var(--color-pastel-yellow), #111827 18%);
}
.shadow-pastel-yellow { box-shadow: 0 18px 40px rgb(var(--color-pastel-yellow-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 contrast19.67:1
White contrast1.07:1
RGB token253 253 150

Machine-readable data

Machine-Readable Pastel Yellow CSS Utilities (JSON)

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

AI-Ready Dataset v1.0.0
Luminance0.9334
Black text19.67:1AA Pass
White text1.07: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-yellow: #FDFD96;",
  "rgb": "--color-pastel-yellow-rgb: 253 253 150;",
  "contrast": "--color-pastel-yellow-contrast: #111827;"
}
Utility classes
{
  "background": ".bg-pastel-yellow",
  "text": ".text-pastel-yellow",
  "border": ".border-pastel-yellow",
  "surface": ".surface-pastel-yellow",
  "shadow": ".shadow-pastel-yellow"
}
Accessibility
{
  "bestTextColor": "#111827",
  "contrast": {
    "black": 19.67,
    "white": 1.07
  },
  "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-yellow: #FDFD96;\n  --color-pastel-yellow-rgb: 253 253 150;\n  --color-pastel-yellow-contrast: #111827;\n}\n\n.bg-pastel-yellow { background-color: var(--color-pastel-yellow); }\n.text-pastel-yellow { color: var(--color-pastel-yellow); }\n.border-pastel-yellow { border-color: var(--color-pastel-yellow); }\n.surface-pastel-yellow {\n  background-color: var(--color-pastel-yellow);\n  color: var(--color-pastel-yellow-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-pastel-yellow), #111827 18%);\n}\n.shadow-pastel-yellow { box-shadow: 0 18px 40px rgb(var(--color-pastel-yellow-rgb) / 28%); }"
}
Related endpoints
[
  "https://www.colorsencyclopedia.com/api/css/colors/pastel-yellow.json",
  "https://www.colorsencyclopedia.com/api/colors/pastel-yellow.json"
]
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "pastel-yellow",
  "name": "Pastel Yellow",
  "hex": "#FDFD96",
  "rgb": [
    253,
    253,
    150
  ],
  "hsl": [
    60,
    96,
    79
  ],
  "cmyk": [
    0,
    0,
    41,
    1
  ],
  "luminance": 0.9334,
  "contrast": {
    "black": 19.67,
    "white": 1.07
  },
  "wcag": {
    "AA": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ],
    "AAA": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ]
  },
  "family": "yellow",
  "temperature": "warm",
  "tone": [
    "pastel"
  ],
  "bestTextColor": "#111827",
  "cssVariables": {
    "color": "--color-pastel-yellow: #FDFD96;",
    "rgb": "--color-pastel-yellow-rgb: 253 253 150;",
    "contrast": "--color-pastel-yellow-contrast: #111827;"
  },
  "utilityClasses": {
    "background": ".bg-pastel-yellow",
    "text": ".text-pastel-yellow",
    "border": ".border-pastel-yellow",
    "surface": ".surface-pastel-yellow",
    "shadow": ".shadow-pastel-yellow"
  },
  "cssSnippet": ":root {\n  --color-pastel-yellow: #FDFD96;\n  --color-pastel-yellow-rgb: 253 253 150;\n  --color-pastel-yellow-contrast: #111827;\n}\n\n.bg-pastel-yellow { background-color: var(--color-pastel-yellow); }\n.text-pastel-yellow { color: var(--color-pastel-yellow); }\n.border-pastel-yellow { border-color: var(--color-pastel-yellow); }\n.surface-pastel-yellow {\n  background-color: var(--color-pastel-yellow);\n  color: var(--color-pastel-yellow-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-pastel-yellow), #111827 18%);\n}\n.shadow-pastel-yellow { box-shadow: 0 18px 40px rgb(var(--color-pastel-yellow-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-yellow.json",
    "https://www.colorsencyclopedia.com/api/colors/pastel-yellow.json"
  ],
  "url": "https://www.colorsencyclopedia.com/css/colors/pastel-yellow/",
  "colorUrl": "https://www.colorsencyclopedia.com/colors/pastel-yellow/",
  "hexUrl": "https://www.colorsencyclopedia.com/hex/fdfd96/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/pastel-yellow.json"
}