CSS utility

Honey CSS Utilities

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

Utility Classes

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

CSS Snippet

:root {
  --color-honey: #FFC30B;
  --color-honey-rgb: 255 195 11;
  --color-honey-contrast: #111827;
}

.bg-honey { background-color: var(--color-honey); }
.text-honey { color: var(--color-honey); }
.border-honey { border-color: var(--color-honey); }
.surface-honey {
  background-color: var(--color-honey);
  color: var(--color-honey-contrast);
  border: 1px solid color-mix(in srgb, var(--color-honey), #111827 18%);
}
.shadow-honey { box-shadow: 0 18px 40px rgb(var(--color-honey-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 contrast13.06:1
White contrast1.61:1
RGB token255 195 11

Machine-readable data

Machine-Readable Honey CSS Utilities (JSON)

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

AI-Ready Dataset v1.0.0
Luminance0.6031
Black text13.06:1AA Pass
White text1.61: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-honey: #FFC30B;",
  "rgb": "--color-honey-rgb: 255 195 11;",
  "contrast": "--color-honey-contrast: #111827;"
}
Utility classes
{
  "background": ".bg-honey",
  "text": ".text-honey",
  "border": ".border-honey",
  "surface": ".surface-honey",
  "shadow": ".shadow-honey"
}
Accessibility
{
  "bestTextColor": "#111827",
  "contrast": {
    "black": 13.06,
    "white": 1.61
  },
  "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-honey: #FFC30B;\n  --color-honey-rgb: 255 195 11;\n  --color-honey-contrast: #111827;\n}\n\n.bg-honey { background-color: var(--color-honey); }\n.text-honey { color: var(--color-honey); }\n.border-honey { border-color: var(--color-honey); }\n.surface-honey {\n  background-color: var(--color-honey);\n  color: var(--color-honey-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-honey), #111827 18%);\n}\n.shadow-honey { box-shadow: 0 18px 40px rgb(var(--color-honey-rgb) / 28%); }"
}
Related endpoints
[
  "https://www.colorsencyclopedia.com/api/css/colors/honey.json",
  "https://www.colorsencyclopedia.com/api/colors/honey.json"
]
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "honey",
  "name": "Honey",
  "hex": "#FFC30B",
  "rgb": [
    255,
    195,
    11
  ],
  "hsl": [
    45,
    100,
    52
  ],
  "cmyk": [
    0,
    24,
    96,
    0
  ],
  "luminance": 0.6031,
  "contrast": {
    "black": 13.06,
    "white": 1.61
  },
  "wcag": {
    "AA": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ],
    "AAA": [
      "#000000",
      "#1A1A1A"
    ]
  },
  "family": "yellow",
  "temperature": "warm",
  "tone": [
    "vibrant"
  ],
  "bestTextColor": "#111827",
  "cssVariables": {
    "color": "--color-honey: #FFC30B;",
    "rgb": "--color-honey-rgb: 255 195 11;",
    "contrast": "--color-honey-contrast: #111827;"
  },
  "utilityClasses": {
    "background": ".bg-honey",
    "text": ".text-honey",
    "border": ".border-honey",
    "surface": ".surface-honey",
    "shadow": ".shadow-honey"
  },
  "cssSnippet": ":root {\n  --color-honey: #FFC30B;\n  --color-honey-rgb: 255 195 11;\n  --color-honey-contrast: #111827;\n}\n\n.bg-honey { background-color: var(--color-honey); }\n.text-honey { color: var(--color-honey); }\n.border-honey { border-color: var(--color-honey); }\n.surface-honey {\n  background-color: var(--color-honey);\n  color: var(--color-honey-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-honey), #111827 18%);\n}\n.shadow-honey { box-shadow: 0 18px 40px rgb(var(--color-honey-rgb) / 28%); }",
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "relatedEndpoints": [
    "https://www.colorsencyclopedia.com/api/css/colors/honey.json",
    "https://www.colorsencyclopedia.com/api/colors/honey.json"
  ],
  "url": "https://www.colorsencyclopedia.com/css/colors/honey/",
  "colorUrl": "https://www.colorsencyclopedia.com/colors/honey/",
  "hexUrl": "https://www.colorsencyclopedia.com/hex/ffc30b/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/honey.json"
}