CSS utility

Mustard Yellow CSS Utilities

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

Utility Classes

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

CSS Snippet

:root {
  --color-mustard-yellow: #E1AD01;
  --color-mustard-yellow-rgb: 225 173 1;
  --color-mustard-yellow-contrast: #111827;
}

.bg-mustard-yellow { background-color: var(--color-mustard-yellow); }
.text-mustard-yellow { color: var(--color-mustard-yellow); }
.border-mustard-yellow { border-color: var(--color-mustard-yellow); }
.surface-mustard-yellow {
  background-color: var(--color-mustard-yellow);
  color: var(--color-mustard-yellow-contrast);
  border: 1px solid color-mix(in srgb, var(--color-mustard-yellow), #111827 18%);
}
.shadow-mustard-yellow { box-shadow: 0 18px 40px rgb(var(--color-mustard-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 contrast10.18:1
White contrast2.06:1
RGB token225 173 1

Machine-readable data

Machine-Readable Mustard Yellow CSS Utilities (JSON)

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

AI-Ready Dataset v1.0.0
Luminance0.459
Black text10.18:1AA Pass
White text2.06: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-mustard-yellow: #E1AD01;",
  "rgb": "--color-mustard-yellow-rgb: 225 173 1;",
  "contrast": "--color-mustard-yellow-contrast: #111827;"
}
Utility classes
{
  "background": ".bg-mustard-yellow",
  "text": ".text-mustard-yellow",
  "border": ".border-mustard-yellow",
  "surface": ".surface-mustard-yellow",
  "shadow": ".shadow-mustard-yellow"
}
Accessibility
{
  "bestTextColor": "#111827",
  "contrast": {
    "black": 10.18,
    "white": 2.06
  },
  "wcag": {
    "AA": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ],
    "AAA": [
      "#000000",
      "#1A1A1A"
    ]
  }
}
Implementation
{
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "cssSnippet": ":root {\n  --color-mustard-yellow: #E1AD01;\n  --color-mustard-yellow-rgb: 225 173 1;\n  --color-mustard-yellow-contrast: #111827;\n}\n\n.bg-mustard-yellow { background-color: var(--color-mustard-yellow); }\n.text-mustard-yellow { color: var(--color-mustard-yellow); }\n.border-mustard-yellow { border-color: var(--color-mustard-yellow); }\n.surface-mustard-yellow {\n  background-color: var(--color-mustard-yellow);\n  color: var(--color-mustard-yellow-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-mustard-yellow), #111827 18%);\n}\n.shadow-mustard-yellow { box-shadow: 0 18px 40px rgb(var(--color-mustard-yellow-rgb) / 28%); }"
}
Related endpoints
[
  "https://www.colorsencyclopedia.com/api/css/colors/mustard-yellow.json",
  "https://www.colorsencyclopedia.com/api/colors/mustard-yellow.json"
]
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "mustard-yellow",
  "name": "Mustard Yellow",
  "hex": "#E1AD01",
  "rgb": [
    225,
    173,
    1
  ],
  "hsl": [
    46,
    99,
    44
  ],
  "cmyk": [
    0,
    23,
    100,
    12
  ],
  "luminance": 0.459,
  "contrast": {
    "black": 10.18,
    "white": 2.06
  },
  "wcag": {
    "AA": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ],
    "AAA": [
      "#000000",
      "#1A1A1A"
    ]
  },
  "family": "yellow",
  "temperature": "warm",
  "tone": [
    "vibrant"
  ],
  "bestTextColor": "#111827",
  "cssVariables": {
    "color": "--color-mustard-yellow: #E1AD01;",
    "rgb": "--color-mustard-yellow-rgb: 225 173 1;",
    "contrast": "--color-mustard-yellow-contrast: #111827;"
  },
  "utilityClasses": {
    "background": ".bg-mustard-yellow",
    "text": ".text-mustard-yellow",
    "border": ".border-mustard-yellow",
    "surface": ".surface-mustard-yellow",
    "shadow": ".shadow-mustard-yellow"
  },
  "cssSnippet": ":root {\n  --color-mustard-yellow: #E1AD01;\n  --color-mustard-yellow-rgb: 225 173 1;\n  --color-mustard-yellow-contrast: #111827;\n}\n\n.bg-mustard-yellow { background-color: var(--color-mustard-yellow); }\n.text-mustard-yellow { color: var(--color-mustard-yellow); }\n.border-mustard-yellow { border-color: var(--color-mustard-yellow); }\n.surface-mustard-yellow {\n  background-color: var(--color-mustard-yellow);\n  color: var(--color-mustard-yellow-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-mustard-yellow), #111827 18%);\n}\n.shadow-mustard-yellow { box-shadow: 0 18px 40px rgb(var(--color-mustard-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/mustard-yellow.json",
    "https://www.colorsencyclopedia.com/api/colors/mustard-yellow.json"
  ],
  "url": "https://www.colorsencyclopedia.com/css/colors/mustard-yellow/",
  "colorUrl": "https://www.colorsencyclopedia.com/colors/mustard-yellow/",
  "hexUrl": "https://www.colorsencyclopedia.com/hex/e1ad01/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/mustard-yellow.json"
}