CSS utility
Strawberry CSS Utilities
Strawberry CSS utilities provide reusable variables and utility classes for #FC5A8D. 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
Strawberry
#FC5A8D
Utility Classes
CSS Snippet
:root {
--color-strawberry: #FC5A8D;
--color-strawberry-rgb: 252 90 141;
--color-strawberry-contrast: #111827;
}
.bg-strawberry { background-color: var(--color-strawberry); }
.text-strawberry { color: var(--color-strawberry); }
.border-strawberry { border-color: var(--color-strawberry); }
.surface-strawberry {
background-color: var(--color-strawberry);
color: var(--color-strawberry-contrast);
border: 1px solid color-mix(in srgb, var(--color-strawberry), #111827 18%);
}
.shadow-strawberry { box-shadow: 0 18px 40px rgb(var(--color-strawberry-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 Strawberry CSS Utilities (JSON)
Structured CSS utility data for Strawberry, including variables, utility classes, contrast tokens, WCAG metadata, snippets, and API links.
Luminance0.2993
Black text6.99:1AA Pass
White text3.01: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-strawberry: #FC5A8D;",
"rgb": "--color-strawberry-rgb: 252 90 141;",
"contrast": "--color-strawberry-contrast: #111827;"
}Utility classes
{
"background": ".bg-strawberry",
"text": ".text-strawberry",
"border": ".border-strawberry",
"surface": ".surface-strawberry",
"shadow": ".shadow-strawberry"
}Accessibility
{
"bestTextColor": "#111827",
"contrast": {
"black": 6.99,
"white": 3.01
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A"
],
"AAA": []
}
}Implementation
{
"useCases": [
"CSS variables",
"utility classes",
"design system tokens",
"UI surface styling",
"accessible text pairing"
],
"cssSnippet": ":root {\n --color-strawberry: #FC5A8D;\n --color-strawberry-rgb: 252 90 141;\n --color-strawberry-contrast: #111827;\n}\n\n.bg-strawberry { background-color: var(--color-strawberry); }\n.text-strawberry { color: var(--color-strawberry); }\n.border-strawberry { border-color: var(--color-strawberry); }\n.surface-strawberry {\n background-color: var(--color-strawberry);\n color: var(--color-strawberry-contrast);\n border: 1px solid color-mix(in srgb, var(--color-strawberry), #111827 18%);\n}\n.shadow-strawberry { box-shadow: 0 18px 40px rgb(var(--color-strawberry-rgb) / 28%); }"
}Related endpoints
[
"https://www.colorsencyclopedia.com/api/css/colors/strawberry.json",
"https://www.colorsencyclopedia.com/api/colors/strawberry.json"
]Full JSON dataset
{
"datasetVersion": "1.0.0",
"slug": "strawberry",
"name": "Strawberry",
"hex": "#FC5A8D",
"rgb": [
252,
90,
141
],
"hsl": [
341,
96,
67
],
"cmyk": [
0,
64,
44,
1
],
"luminance": 0.2993,
"contrast": {
"black": 6.99,
"white": 3.01
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A"
],
"AAA": []
},
"family": "pink",
"temperature": "warm",
"tone": [
"vibrant"
],
"bestTextColor": "#111827",
"cssVariables": {
"color": "--color-strawberry: #FC5A8D;",
"rgb": "--color-strawberry-rgb: 252 90 141;",
"contrast": "--color-strawberry-contrast: #111827;"
},
"utilityClasses": {
"background": ".bg-strawberry",
"text": ".text-strawberry",
"border": ".border-strawberry",
"surface": ".surface-strawberry",
"shadow": ".shadow-strawberry"
},
"cssSnippet": ":root {\n --color-strawberry: #FC5A8D;\n --color-strawberry-rgb: 252 90 141;\n --color-strawberry-contrast: #111827;\n}\n\n.bg-strawberry { background-color: var(--color-strawberry); }\n.text-strawberry { color: var(--color-strawberry); }\n.border-strawberry { border-color: var(--color-strawberry); }\n.surface-strawberry {\n background-color: var(--color-strawberry);\n color: var(--color-strawberry-contrast);\n border: 1px solid color-mix(in srgb, var(--color-strawberry), #111827 18%);\n}\n.shadow-strawberry { box-shadow: 0 18px 40px rgb(var(--color-strawberry-rgb) / 28%); }",
"useCases": [
"CSS variables",
"utility classes",
"design system tokens",
"UI surface styling",
"accessible text pairing"
],
"relatedEndpoints": [
"https://www.colorsencyclopedia.com/api/css/colors/strawberry.json",
"https://www.colorsencyclopedia.com/api/colors/strawberry.json"
],
"url": "https://www.colorsencyclopedia.com/css/colors/strawberry/",
"colorUrl": "https://www.colorsencyclopedia.com/colors/strawberry/",
"hexUrl": "https://www.colorsencyclopedia.com/hex/fc5a8d/",
"apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/strawberry.json"
}