CSS utility

Old Gold CSS Utilities

Old Gold CSS utilities provide reusable variables and utility classes for #CFB53B. 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 Old Gold #CFB53B

Utility Classes

Background.bg-old-gold
Text.text-old-gold
Border.border-old-gold
Surface.surface-old-gold

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 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

Best text color#111827
Black contrast10.33:1
White contrast2.03:1
RGB token207 181 59

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.

AI-Ready Dataset v1.0.0
Luminance0.4663
Black text10.33:1AA Pass
White text2.03:1AA Fail
cssVariablesReusable CSS custom properties
utilityClassesBackground, text, border, surface, and shadow classes
bestTextColorAccessible default foreground token
contrastBlack and white contrast ratios
wcagAA and AAA text color options
relatedEndpointsLinked machine-readable resources
Download JSON Open API
Structured 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"
}