CSS utility
Cool Gray CSS Utilities
Cool Gray CSS utilities provide reusable variables and utility classes for #8C92AC. 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
Cool Gray
#8C92AC
Utility Classes
CSS Snippet
:root {
--color-cool-gray: #8C92AC;
--color-cool-gray-rgb: 140 146 172;
--color-cool-gray-contrast: #111827;
}
.bg-cool-gray { background-color: var(--color-cool-gray); }
.text-cool-gray { color: var(--color-cool-gray); }
.border-cool-gray { border-color: var(--color-cool-gray); }
.surface-cool-gray {
background-color: var(--color-cool-gray);
color: var(--color-cool-gray-contrast);
border: 1px solid color-mix(in srgb, var(--color-cool-gray), #111827 18%);
}
.shadow-cool-gray { box-shadow: 0 18px 40px rgb(var(--color-cool-gray-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 Cool Gray CSS Utilities (JSON)
Structured CSS utility data for Cool Gray, including variables, utility classes, contrast tokens, WCAG metadata, snippets, and API links.
Luminance0.2911
Black text6.82:1AA Pass
White text3.08: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-cool-gray: #8C92AC;",
"rgb": "--color-cool-gray-rgb: 140 146 172;",
"contrast": "--color-cool-gray-contrast: #111827;"
}Utility classes
{
"background": ".bg-cool-gray",
"text": ".text-cool-gray",
"border": ".border-cool-gray",
"surface": ".surface-cool-gray",
"shadow": ".shadow-cool-gray"
}Accessibility
{
"bestTextColor": "#111827",
"contrast": {
"black": 6.82,
"white": 3.08
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A"
],
"AAA": []
}
}Implementation
{
"useCases": [
"CSS variables",
"utility classes",
"design system tokens",
"UI surface styling",
"accessible text pairing"
],
"cssSnippet": ":root {\n --color-cool-gray: #8C92AC;\n --color-cool-gray-rgb: 140 146 172;\n --color-cool-gray-contrast: #111827;\n}\n\n.bg-cool-gray { background-color: var(--color-cool-gray); }\n.text-cool-gray { color: var(--color-cool-gray); }\n.border-cool-gray { border-color: var(--color-cool-gray); }\n.surface-cool-gray {\n background-color: var(--color-cool-gray);\n color: var(--color-cool-gray-contrast);\n border: 1px solid color-mix(in srgb, var(--color-cool-gray), #111827 18%);\n}\n.shadow-cool-gray { box-shadow: 0 18px 40px rgb(var(--color-cool-gray-rgb) / 28%); }"
}Related endpoints
[
"https://www.colorsencyclopedia.com/api/css/colors/cool-gray.json",
"https://www.colorsencyclopedia.com/api/colors/cool-gray.json"
]Full JSON dataset
{
"datasetVersion": "1.0.0",
"slug": "cool-gray",
"name": "Cool Gray",
"hex": "#8C92AC",
"rgb": [
140,
146,
172
],
"hsl": [
229,
16,
61
],
"cmyk": [
19,
15,
0,
33
],
"luminance": 0.2911,
"contrast": {
"black": 6.82,
"white": 3.08
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A"
],
"AAA": []
},
"family": "blue",
"temperature": "cool",
"tone": [
"muted"
],
"bestTextColor": "#111827",
"cssVariables": {
"color": "--color-cool-gray: #8C92AC;",
"rgb": "--color-cool-gray-rgb: 140 146 172;",
"contrast": "--color-cool-gray-contrast: #111827;"
},
"utilityClasses": {
"background": ".bg-cool-gray",
"text": ".text-cool-gray",
"border": ".border-cool-gray",
"surface": ".surface-cool-gray",
"shadow": ".shadow-cool-gray"
},
"cssSnippet": ":root {\n --color-cool-gray: #8C92AC;\n --color-cool-gray-rgb: 140 146 172;\n --color-cool-gray-contrast: #111827;\n}\n\n.bg-cool-gray { background-color: var(--color-cool-gray); }\n.text-cool-gray { color: var(--color-cool-gray); }\n.border-cool-gray { border-color: var(--color-cool-gray); }\n.surface-cool-gray {\n background-color: var(--color-cool-gray);\n color: var(--color-cool-gray-contrast);\n border: 1px solid color-mix(in srgb, var(--color-cool-gray), #111827 18%);\n}\n.shadow-cool-gray { box-shadow: 0 18px 40px rgb(var(--color-cool-gray-rgb) / 28%); }",
"useCases": [
"CSS variables",
"utility classes",
"design system tokens",
"UI surface styling",
"accessible text pairing"
],
"relatedEndpoints": [
"https://www.colorsencyclopedia.com/api/css/colors/cool-gray.json",
"https://www.colorsencyclopedia.com/api/colors/cool-gray.json"
],
"url": "https://www.colorsencyclopedia.com/css/colors/cool-gray/",
"colorUrl": "https://www.colorsencyclopedia.com/colors/cool-gray/",
"hexUrl": "https://www.colorsencyclopedia.com/hex/8c92ac/",
"apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/cool-gray.json"
}