CSS utility

Dandelion CSS Utilities

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

Utility Classes

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

CSS Snippet

:root {
  --color-dandelion: #F0E130;
  --color-dandelion-rgb: 240 225 48;
  --color-dandelion-contrast: #111827;
}

.bg-dandelion { background-color: var(--color-dandelion); }
.text-dandelion { color: var(--color-dandelion); }
.border-dandelion { border-color: var(--color-dandelion); }
.surface-dandelion {
  background-color: var(--color-dandelion);
  color: var(--color-dandelion-contrast);
  border: 1px solid color-mix(in srgb, var(--color-dandelion), #111827 18%);
}
.shadow-dandelion { box-shadow: 0 18px 40px rgb(var(--color-dandelion-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.52:1
White contrast1.35:1
RGB token240 225 48

Machine-readable data

Machine-Readable Dandelion CSS Utilities (JSON)

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

AI-Ready Dataset v1.0.0
Luminance0.7259
Black text15.52:1AA Pass
White text1.35: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-dandelion: #F0E130;",
  "rgb": "--color-dandelion-rgb: 240 225 48;",
  "contrast": "--color-dandelion-contrast: #111827;"
}
Utility classes
{
  "background": ".bg-dandelion",
  "text": ".text-dandelion",
  "border": ".border-dandelion",
  "surface": ".surface-dandelion",
  "shadow": ".shadow-dandelion"
}
Accessibility
{
  "bestTextColor": "#111827",
  "contrast": {
    "black": 15.52,
    "white": 1.35
  },
  "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-dandelion: #F0E130;\n  --color-dandelion-rgb: 240 225 48;\n  --color-dandelion-contrast: #111827;\n}\n\n.bg-dandelion { background-color: var(--color-dandelion); }\n.text-dandelion { color: var(--color-dandelion); }\n.border-dandelion { border-color: var(--color-dandelion); }\n.surface-dandelion {\n  background-color: var(--color-dandelion);\n  color: var(--color-dandelion-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-dandelion), #111827 18%);\n}\n.shadow-dandelion { box-shadow: 0 18px 40px rgb(var(--color-dandelion-rgb) / 28%); }"
}
Related endpoints
[
  "https://www.colorsencyclopedia.com/api/css/colors/dandelion.json",
  "https://www.colorsencyclopedia.com/api/colors/dandelion.json"
]
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "dandelion",
  "name": "Dandelion",
  "hex": "#F0E130",
  "rgb": [
    240,
    225,
    48
  ],
  "hsl": [
    55,
    86,
    56
  ],
  "cmyk": [
    0,
    6,
    80,
    6
  ],
  "luminance": 0.7259,
  "contrast": {
    "black": 15.52,
    "white": 1.35
  },
  "wcag": {
    "AA": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ],
    "AAA": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ]
  },
  "family": "yellow",
  "temperature": "warm",
  "tone": [
    "vibrant"
  ],
  "bestTextColor": "#111827",
  "cssVariables": {
    "color": "--color-dandelion: #F0E130;",
    "rgb": "--color-dandelion-rgb: 240 225 48;",
    "contrast": "--color-dandelion-contrast: #111827;"
  },
  "utilityClasses": {
    "background": ".bg-dandelion",
    "text": ".text-dandelion",
    "border": ".border-dandelion",
    "surface": ".surface-dandelion",
    "shadow": ".shadow-dandelion"
  },
  "cssSnippet": ":root {\n  --color-dandelion: #F0E130;\n  --color-dandelion-rgb: 240 225 48;\n  --color-dandelion-contrast: #111827;\n}\n\n.bg-dandelion { background-color: var(--color-dandelion); }\n.text-dandelion { color: var(--color-dandelion); }\n.border-dandelion { border-color: var(--color-dandelion); }\n.surface-dandelion {\n  background-color: var(--color-dandelion);\n  color: var(--color-dandelion-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-dandelion), #111827 18%);\n}\n.shadow-dandelion { box-shadow: 0 18px 40px rgb(var(--color-dandelion-rgb) / 28%); }",
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "relatedEndpoints": [
    "https://www.colorsencyclopedia.com/api/css/colors/dandelion.json",
    "https://www.colorsencyclopedia.com/api/colors/dandelion.json"
  ],
  "url": "https://www.colorsencyclopedia.com/css/colors/dandelion/",
  "colorUrl": "https://www.colorsencyclopedia.com/colors/dandelion/",
  "hexUrl": "https://www.colorsencyclopedia.com/hex/f0e130/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/dandelion.json"
}