CSS utility
Red Clay CSS Utilities
Red Clay CSS utilities provide reusable variables and utility classes for #B45A3C. 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
Red Clay
#B45A3C
Utility Classes
CSS Snippet
:root {
--color-red-clay: #B45A3C;
--color-red-clay-rgb: 180 90 60;
--color-red-clay-contrast: #FFFFFF;
}
.bg-red-clay { background-color: var(--color-red-clay); }
.text-red-clay { color: var(--color-red-clay); }
.border-red-clay { border-color: var(--color-red-clay); }
.surface-red-clay {
background-color: var(--color-red-clay);
color: var(--color-red-clay-contrast);
border: 1px solid color-mix(in srgb, var(--color-red-clay), #111827 18%);
}
.shadow-red-clay { box-shadow: 0 18px 40px rgb(var(--color-red-clay-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 Red Clay CSS Utilities (JSON)
Structured CSS utility data for Red Clay, including variables, utility classes, contrast tokens, WCAG metadata, snippets, and API links.
Luminance0.1734
Black text4.47:1AA Fail
White text4.7: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-red-clay: #B45A3C;",
"rgb": "--color-red-clay-rgb: 180 90 60;",
"contrast": "--color-red-clay-contrast: #FFFFFF;"
}Utility classes
{
"background": ".bg-red-clay",
"text": ".text-red-clay",
"border": ".border-red-clay",
"surface": ".surface-red-clay",
"shadow": ".shadow-red-clay"
}Accessibility
{
"bestTextColor": "#FFFFFF",
"contrast": {
"black": 4.47,
"white": 4.7
},
"wcag": {
"AA": [
"#FFFFFF"
],
"AAA": []
}
}Implementation
{
"useCases": [
"CSS variables",
"utility classes",
"design system tokens",
"UI surface styling",
"accessible text pairing"
],
"cssSnippet": ":root {\n --color-red-clay: #B45A3C;\n --color-red-clay-rgb: 180 90 60;\n --color-red-clay-contrast: #FFFFFF;\n}\n\n.bg-red-clay { background-color: var(--color-red-clay); }\n.text-red-clay { color: var(--color-red-clay); }\n.border-red-clay { border-color: var(--color-red-clay); }\n.surface-red-clay {\n background-color: var(--color-red-clay);\n color: var(--color-red-clay-contrast);\n border: 1px solid color-mix(in srgb, var(--color-red-clay), #111827 18%);\n}\n.shadow-red-clay { box-shadow: 0 18px 40px rgb(var(--color-red-clay-rgb) / 28%); }"
}Related endpoints
[
"https://www.colorsencyclopedia.com/api/css/colors/red-clay.json",
"https://www.colorsencyclopedia.com/api/colors/red-clay.json"
]Full JSON dataset
{
"datasetVersion": "1.0.0",
"slug": "red-clay",
"name": "Red Clay",
"hex": "#B45A3C",
"rgb": [
180,
90,
60
],
"hsl": [
15,
50,
47
],
"cmyk": [
0,
50,
67,
29
],
"luminance": 0.1734,
"contrast": {
"black": 4.47,
"white": 4.7
},
"wcag": {
"AA": [
"#FFFFFF"
],
"AAA": []
},
"family": "orange",
"temperature": "warm",
"tone": [
"earth-tone"
],
"bestTextColor": "#FFFFFF",
"cssVariables": {
"color": "--color-red-clay: #B45A3C;",
"rgb": "--color-red-clay-rgb: 180 90 60;",
"contrast": "--color-red-clay-contrast: #FFFFFF;"
},
"utilityClasses": {
"background": ".bg-red-clay",
"text": ".text-red-clay",
"border": ".border-red-clay",
"surface": ".surface-red-clay",
"shadow": ".shadow-red-clay"
},
"cssSnippet": ":root {\n --color-red-clay: #B45A3C;\n --color-red-clay-rgb: 180 90 60;\n --color-red-clay-contrast: #FFFFFF;\n}\n\n.bg-red-clay { background-color: var(--color-red-clay); }\n.text-red-clay { color: var(--color-red-clay); }\n.border-red-clay { border-color: var(--color-red-clay); }\n.surface-red-clay {\n background-color: var(--color-red-clay);\n color: var(--color-red-clay-contrast);\n border: 1px solid color-mix(in srgb, var(--color-red-clay), #111827 18%);\n}\n.shadow-red-clay { box-shadow: 0 18px 40px rgb(var(--color-red-clay-rgb) / 28%); }",
"useCases": [
"CSS variables",
"utility classes",
"design system tokens",
"UI surface styling",
"accessible text pairing"
],
"relatedEndpoints": [
"https://www.colorsencyclopedia.com/api/css/colors/red-clay.json",
"https://www.colorsencyclopedia.com/api/colors/red-clay.json"
],
"url": "https://www.colorsencyclopedia.com/css/colors/red-clay/",
"colorUrl": "https://www.colorsencyclopedia.com/colors/red-clay/",
"hexUrl": "https://www.colorsencyclopedia.com/hex/b45a3c/",
"apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/red-clay.json"
}