CSS utility
Dim Gray CSS Utilities
Dim Gray CSS utilities provide reusable variables and utility classes for #696969. 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
Dim Gray
#696969
Utility Classes
CSS Snippet
:root {
--color-dim-gray: #696969;
--color-dim-gray-rgb: 105 105 105;
--color-dim-gray-contrast: #FFFFFF;
}
.bg-dim-gray { background-color: var(--color-dim-gray); }
.text-dim-gray { color: var(--color-dim-gray); }
.border-dim-gray { border-color: var(--color-dim-gray); }
.surface-dim-gray {
background-color: var(--color-dim-gray);
color: var(--color-dim-gray-contrast);
border: 1px solid color-mix(in srgb, var(--color-dim-gray), #111827 18%);
}
.shadow-dim-gray { box-shadow: 0 18px 40px rgb(var(--color-dim-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 Dim Gray CSS Utilities (JSON)
Structured CSS utility data for Dim Gray, including variables, utility classes, contrast tokens, WCAG metadata, snippets, and API links.
Luminance0.1413
Black text3.83:1AA Fail
White text5.49:1AA Pass
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-dim-gray: #696969;",
"rgb": "--color-dim-gray-rgb: 105 105 105;",
"contrast": "--color-dim-gray-contrast: #FFFFFF;"
}Utility classes
{
"background": ".bg-dim-gray",
"text": ".text-dim-gray",
"border": ".border-dim-gray",
"surface": ".surface-dim-gray",
"shadow": ".shadow-dim-gray"
}Accessibility
{
"bestTextColor": "#FFFFFF",
"contrast": {
"black": 3.83,
"white": 5.49
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": []
}
}Implementation
{
"useCases": [
"CSS variables",
"utility classes",
"design system tokens",
"UI surface styling",
"accessible text pairing"
],
"cssSnippet": ":root {\n --color-dim-gray: #696969;\n --color-dim-gray-rgb: 105 105 105;\n --color-dim-gray-contrast: #FFFFFF;\n}\n\n.bg-dim-gray { background-color: var(--color-dim-gray); }\n.text-dim-gray { color: var(--color-dim-gray); }\n.border-dim-gray { border-color: var(--color-dim-gray); }\n.surface-dim-gray {\n background-color: var(--color-dim-gray);\n color: var(--color-dim-gray-contrast);\n border: 1px solid color-mix(in srgb, var(--color-dim-gray), #111827 18%);\n}\n.shadow-dim-gray { box-shadow: 0 18px 40px rgb(var(--color-dim-gray-rgb) / 28%); }"
}Related endpoints
[
"https://www.colorsencyclopedia.com/api/css/colors/dim-gray.json",
"https://www.colorsencyclopedia.com/api/colors/dim-gray.json"
]Full JSON dataset
{
"datasetVersion": "1.0.0",
"slug": "dim-gray",
"name": "Dim Gray",
"hex": "#696969",
"rgb": [
105,
105,
105
],
"hsl": [
0,
0,
41
],
"cmyk": [
0,
0,
0,
59
],
"luminance": 0.1413,
"contrast": {
"black": 3.83,
"white": 5.49
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": []
},
"family": "gray",
"temperature": "neutral",
"tone": [
"muted"
],
"bestTextColor": "#FFFFFF",
"cssVariables": {
"color": "--color-dim-gray: #696969;",
"rgb": "--color-dim-gray-rgb: 105 105 105;",
"contrast": "--color-dim-gray-contrast: #FFFFFF;"
},
"utilityClasses": {
"background": ".bg-dim-gray",
"text": ".text-dim-gray",
"border": ".border-dim-gray",
"surface": ".surface-dim-gray",
"shadow": ".shadow-dim-gray"
},
"cssSnippet": ":root {\n --color-dim-gray: #696969;\n --color-dim-gray-rgb: 105 105 105;\n --color-dim-gray-contrast: #FFFFFF;\n}\n\n.bg-dim-gray { background-color: var(--color-dim-gray); }\n.text-dim-gray { color: var(--color-dim-gray); }\n.border-dim-gray { border-color: var(--color-dim-gray); }\n.surface-dim-gray {\n background-color: var(--color-dim-gray);\n color: var(--color-dim-gray-contrast);\n border: 1px solid color-mix(in srgb, var(--color-dim-gray), #111827 18%);\n}\n.shadow-dim-gray { box-shadow: 0 18px 40px rgb(var(--color-dim-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/dim-gray.json",
"https://www.colorsencyclopedia.com/api/colors/dim-gray.json"
],
"url": "https://www.colorsencyclopedia.com/css/colors/dim-gray/",
"colorUrl": "https://www.colorsencyclopedia.com/colors/dim-gray/",
"hexUrl": "https://www.colorsencyclopedia.com/hex/696969/",
"apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/dim-gray.json"
}