CSS utility
Neon Yellow CSS Utilities
Neon Yellow CSS utilities provide reusable variables and utility classes for #FFF01F. 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
Neon Yellow
#FFF01F
Utility Classes
CSS Snippet
:root {
--color-neon-yellow: #FFF01F;
--color-neon-yellow-rgb: 255 240 31;
--color-neon-yellow-contrast: #111827;
}
.bg-neon-yellow { background-color: var(--color-neon-yellow); }
.text-neon-yellow { color: var(--color-neon-yellow); }
.border-neon-yellow { border-color: var(--color-neon-yellow); }
.surface-neon-yellow {
background-color: var(--color-neon-yellow);
color: var(--color-neon-yellow-contrast);
border: 1px solid color-mix(in srgb, var(--color-neon-yellow), #111827 18%);
}
.shadow-neon-yellow { box-shadow: 0 18px 40px rgb(var(--color-neon-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
Machine-readable data
Machine-Readable Neon Yellow CSS Utilities (JSON)
Structured CSS utility data for Neon Yellow, including variables, utility classes, contrast tokens, WCAG metadata, snippets, and API links.
Luminance0.8368
Black text17.74:1AA Pass
White text1.18:1AA Fail
cssVariablesReusable CSS custom propertiesutilityClassesBackground, text, border, surface, and shadow classesbestTextColorAccessible default foreground tokencontrastBlack and white contrast ratioswcagAA and AAA text color optionsrelatedEndpointsLinked machine-readable resourcesStructured sections
CSS variables
{
"color": "--color-neon-yellow: #FFF01F;",
"rgb": "--color-neon-yellow-rgb: 255 240 31;",
"contrast": "--color-neon-yellow-contrast: #111827;"
}Utility classes
{
"background": ".bg-neon-yellow",
"text": ".text-neon-yellow",
"border": ".border-neon-yellow",
"surface": ".surface-neon-yellow",
"shadow": ".shadow-neon-yellow"
}Accessibility
{
"bestTextColor": "#111827",
"contrast": {
"black": 17.74,
"white": 1.18
},
"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-neon-yellow: #FFF01F;\n --color-neon-yellow-rgb: 255 240 31;\n --color-neon-yellow-contrast: #111827;\n}\n\n.bg-neon-yellow { background-color: var(--color-neon-yellow); }\n.text-neon-yellow { color: var(--color-neon-yellow); }\n.border-neon-yellow { border-color: var(--color-neon-yellow); }\n.surface-neon-yellow {\n background-color: var(--color-neon-yellow);\n color: var(--color-neon-yellow-contrast);\n border: 1px solid color-mix(in srgb, var(--color-neon-yellow), #111827 18%);\n}\n.shadow-neon-yellow { box-shadow: 0 18px 40px rgb(var(--color-neon-yellow-rgb) / 28%); }"
}Related endpoints
[
"https://www.colorsencyclopedia.com/api/css/colors/neon-yellow.json",
"https://www.colorsencyclopedia.com/api/colors/neon-yellow.json"
]Full JSON dataset
{
"datasetVersion": "1.0.0",
"slug": "neon-yellow",
"name": "Neon Yellow",
"hex": "#FFF01F",
"rgb": [
255,
240,
31
],
"hsl": [
56,
100,
56
],
"cmyk": [
0,
6,
88,
0
],
"luminance": 0.8368,
"contrast": {
"black": 17.74,
"white": 1.18
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A",
"#36454F"
],
"AAA": [
"#000000",
"#1A1A1A",
"#36454F"
]
},
"family": "yellow",
"temperature": "warm",
"tone": [
"vibrant"
],
"bestTextColor": "#111827",
"cssVariables": {
"color": "--color-neon-yellow: #FFF01F;",
"rgb": "--color-neon-yellow-rgb: 255 240 31;",
"contrast": "--color-neon-yellow-contrast: #111827;"
},
"utilityClasses": {
"background": ".bg-neon-yellow",
"text": ".text-neon-yellow",
"border": ".border-neon-yellow",
"surface": ".surface-neon-yellow",
"shadow": ".shadow-neon-yellow"
},
"cssSnippet": ":root {\n --color-neon-yellow: #FFF01F;\n --color-neon-yellow-rgb: 255 240 31;\n --color-neon-yellow-contrast: #111827;\n}\n\n.bg-neon-yellow { background-color: var(--color-neon-yellow); }\n.text-neon-yellow { color: var(--color-neon-yellow); }\n.border-neon-yellow { border-color: var(--color-neon-yellow); }\n.surface-neon-yellow {\n background-color: var(--color-neon-yellow);\n color: var(--color-neon-yellow-contrast);\n border: 1px solid color-mix(in srgb, var(--color-neon-yellow), #111827 18%);\n}\n.shadow-neon-yellow { box-shadow: 0 18px 40px rgb(var(--color-neon-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/neon-yellow.json",
"https://www.colorsencyclopedia.com/api/colors/neon-yellow.json"
],
"url": "https://www.colorsencyclopedia.com/css/colors/neon-yellow/",
"colorUrl": "https://www.colorsencyclopedia.com/colors/neon-yellow/",
"hexUrl": "https://www.colorsencyclopedia.com/hex/fff01f/",
"apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/neon-yellow.json"
}