CSS utility

Buttercup CSS Utilities

Buttercup CSS utilities provide reusable variables and utility classes for #F3C13A. 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 Buttercup #F3C13A

Utility Classes

Background.bg-buttercup
Text.text-buttercup
Border.border-buttercup
Surface.surface-buttercup

CSS Snippet

:root {
  --color-buttercup: #F3C13A;
  --color-buttercup-rgb: 243 193 58;
  --color-buttercup-contrast: #111827;
}

.bg-buttercup { background-color: var(--color-buttercup); }
.text-buttercup { color: var(--color-buttercup); }
.border-buttercup { border-color: var(--color-buttercup); }
.surface-buttercup {
  background-color: var(--color-buttercup);
  color: var(--color-buttercup-contrast);
  border: 1px solid color-mix(in srgb, var(--color-buttercup), #111827 18%);
}
.shadow-buttercup { box-shadow: 0 18px 40px rgb(var(--color-buttercup-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 contrast12.5:1
White contrast1.68:1
RGB token243 193 58

Machine-readable data

Machine-Readable Buttercup CSS Utilities (JSON)

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

AI-Ready Dataset v1.0.0
Luminance0.575
Black text12.5:1AA Pass
White text1.68: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-buttercup: #F3C13A;",
  "rgb": "--color-buttercup-rgb: 243 193 58;",
  "contrast": "--color-buttercup-contrast: #111827;"
}
Utility classes
{
  "background": ".bg-buttercup",
  "text": ".text-buttercup",
  "border": ".border-buttercup",
  "surface": ".surface-buttercup",
  "shadow": ".shadow-buttercup"
}
Accessibility
{
  "bestTextColor": "#111827",
  "contrast": {
    "black": 12.5,
    "white": 1.68
  },
  "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-buttercup: #F3C13A;\n  --color-buttercup-rgb: 243 193 58;\n  --color-buttercup-contrast: #111827;\n}\n\n.bg-buttercup { background-color: var(--color-buttercup); }\n.text-buttercup { color: var(--color-buttercup); }\n.border-buttercup { border-color: var(--color-buttercup); }\n.surface-buttercup {\n  background-color: var(--color-buttercup);\n  color: var(--color-buttercup-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-buttercup), #111827 18%);\n}\n.shadow-buttercup { box-shadow: 0 18px 40px rgb(var(--color-buttercup-rgb) / 28%); }"
}
Related endpoints
[
  "https://www.colorsencyclopedia.com/api/css/colors/buttercup.json",
  "https://www.colorsencyclopedia.com/api/colors/buttercup.json"
]
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "buttercup",
  "name": "Buttercup",
  "hex": "#F3C13A",
  "rgb": [
    243,
    193,
    58
  ],
  "hsl": [
    44,
    89,
    59
  ],
  "cmyk": [
    0,
    21,
    76,
    5
  ],
  "luminance": 0.575,
  "contrast": {
    "black": 12.5,
    "white": 1.68
  },
  "wcag": {
    "AA": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ],
    "AAA": [
      "#000000",
      "#1A1A1A"
    ]
  },
  "family": "orange",
  "temperature": "warm",
  "tone": [
    "vibrant"
  ],
  "bestTextColor": "#111827",
  "cssVariables": {
    "color": "--color-buttercup: #F3C13A;",
    "rgb": "--color-buttercup-rgb: 243 193 58;",
    "contrast": "--color-buttercup-contrast: #111827;"
  },
  "utilityClasses": {
    "background": ".bg-buttercup",
    "text": ".text-buttercup",
    "border": ".border-buttercup",
    "surface": ".surface-buttercup",
    "shadow": ".shadow-buttercup"
  },
  "cssSnippet": ":root {\n  --color-buttercup: #F3C13A;\n  --color-buttercup-rgb: 243 193 58;\n  --color-buttercup-contrast: #111827;\n}\n\n.bg-buttercup { background-color: var(--color-buttercup); }\n.text-buttercup { color: var(--color-buttercup); }\n.border-buttercup { border-color: var(--color-buttercup); }\n.surface-buttercup {\n  background-color: var(--color-buttercup);\n  color: var(--color-buttercup-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-buttercup), #111827 18%);\n}\n.shadow-buttercup { box-shadow: 0 18px 40px rgb(var(--color-buttercup-rgb) / 28%); }",
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "relatedEndpoints": [
    "https://www.colorsencyclopedia.com/api/css/colors/buttercup.json",
    "https://www.colorsencyclopedia.com/api/colors/buttercup.json"
  ],
  "url": "https://www.colorsencyclopedia.com/css/colors/buttercup/",
  "colorUrl": "https://www.colorsencyclopedia.com/colors/buttercup/",
  "hexUrl": "https://www.colorsencyclopedia.com/hex/f3c13a/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/buttercup.json"
}