CSS utility
Old Gold CSS Utilities
Old Gold CSS utilities for #CFB53B: copy variables and classes for backgrounds, text, borders and surfaces, with RGB tokens and contrast guidance.
Preview
Old Gold
#CFB53B
Utility Classes
CSS Snippet
:root {
--color-old-gold: #CFB53B;
--color-old-gold-rgb: 207 181 59;
--color-old-gold-contrast: #111827;
}
.bg-old-gold { background-color: var(--color-old-gold); }
.text-old-gold { color: var(--color-old-gold); }
.border-old-gold { border-color: var(--color-old-gold); }
.surface-old-gold {
background-color: var(--color-old-gold);
color: var(--color-old-gold-contrast);
border: 1px solid color-mix(in srgb, var(--color-old-gold), #111827 18%);
}
.shadow-old-gold { box-shadow: 0 18px 40px rgb(var(--color-old-gold-rgb) / 28%); }
Usage Examples
Surface cardOld Gold uses #111827 as its stronger standard foreground at 10.33:1.
Border accentUse #CFB53B as a warm yellow outline, divider, or interface accent.
Text accentPlace #CFB53B on a checked contrasting surface before using it for text, links, or icons.
Implementation Notes
Machine-readable data
Machine-Readable Old Gold CSS Utilities (JSON)
Structured CSS utility data for Old Gold, including variables, utility classes, contrast tokens, WCAG metadata, snippets, and API links.
Luminance0.4663
Black text10.33:1AA Pass
White text2.03: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-old-gold: #CFB53B;",
"rgb": "--color-old-gold-rgb: 207 181 59;",
"contrast": "--color-old-gold-contrast: #111827;"
}Utility classes
{
"background": ".bg-old-gold",
"text": ".text-old-gold",
"border": ".border-old-gold",
"surface": ".surface-old-gold",
"shadow": ".shadow-old-gold"
}Accessibility
{
"bestTextColor": "#111827",
"contrast": {
"black": 10.33,
"white": 2.03
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A",
"#36454F"
],
"AAA": [
"#000000",
"#1A1A1A"
]
}
}Implementation
{
"useCases": [
"CSS variables",
"utility classes",
"design system tokens",
"UI surface styling",
"accessible text pairing"
],
"cssSnippet": ":root {\n --color-old-gold: #CFB53B;\n --color-old-gold-rgb: 207 181 59;\n --color-old-gold-contrast: #111827;\n}\n\n.bg-old-gold { background-color: var(--color-old-gold); }\n.text-old-gold { color: var(--color-old-gold); }\n.border-old-gold { border-color: var(--color-old-gold); }\n.surface-old-gold {\n background-color: var(--color-old-gold);\n color: var(--color-old-gold-contrast);\n border: 1px solid color-mix(in srgb, var(--color-old-gold), #111827 18%);\n}\n.shadow-old-gold { box-shadow: 0 18px 40px rgb(var(--color-old-gold-rgb) / 28%); }"
}Related endpoints
[
"https://www.colorsencyclopedia.com/api/css/colors/old-gold.json",
"https://www.colorsencyclopedia.com/api/colors/old-gold.json"
]Full JSON dataset
{
"datasetVersion": "1.0.0",
"slug": "old-gold",
"name": "Old Gold",
"hex": "#CFB53B",
"rgb": [
207,
181,
59
],
"hsl": [
49,
61,
52
],
"cmyk": [
0,
13,
71,
19
],
"luminance": 0.4663,
"contrast": {
"black": 10.33,
"white": 2.03
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A",
"#36454F"
],
"AAA": [
"#000000",
"#1A1A1A"
]
},
"family": "yellow",
"temperature": "warm",
"tone": [
"earth-tone"
],
"bestTextColor": "#111827",
"cssVariables": {
"color": "--color-old-gold: #CFB53B;",
"rgb": "--color-old-gold-rgb: 207 181 59;",
"contrast": "--color-old-gold-contrast: #111827;"
},
"utilityClasses": {
"background": ".bg-old-gold",
"text": ".text-old-gold",
"border": ".border-old-gold",
"surface": ".surface-old-gold",
"shadow": ".shadow-old-gold"
},
"cssSnippet": ":root {\n --color-old-gold: #CFB53B;\n --color-old-gold-rgb: 207 181 59;\n --color-old-gold-contrast: #111827;\n}\n\n.bg-old-gold { background-color: var(--color-old-gold); }\n.text-old-gold { color: var(--color-old-gold); }\n.border-old-gold { border-color: var(--color-old-gold); }\n.surface-old-gold {\n background-color: var(--color-old-gold);\n color: var(--color-old-gold-contrast);\n border: 1px solid color-mix(in srgb, var(--color-old-gold), #111827 18%);\n}\n.shadow-old-gold { box-shadow: 0 18px 40px rgb(var(--color-old-gold-rgb) / 28%); }",
"useCases": [
"CSS variables",
"utility classes",
"design system tokens",
"UI surface styling",
"accessible text pairing"
],
"relatedEndpoints": [
"https://www.colorsencyclopedia.com/api/css/colors/old-gold.json",
"https://www.colorsencyclopedia.com/api/colors/old-gold.json"
],
"url": "https://www.colorsencyclopedia.com/css/colors/old-gold/",
"colorUrl": "https://www.colorsencyclopedia.com/colors/old-gold/",
"hexUrl": "https://www.colorsencyclopedia.com/hex/cfb53b/",
"apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/old-gold.json"
}