CSS utility

Driftwood CSS Utilities

Driftwood CSS utilities provide reusable variables and utility classes for #A69A8D. 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 Driftwood #A69A8D

Utility Classes

Background.bg-driftwood
Text.text-driftwood
Border.border-driftwood
Surface.surface-driftwood

CSS Snippet

:root {
  --color-driftwood: #A69A8D;
  --color-driftwood-rgb: 166 154 141;
  --color-driftwood-contrast: #111827;
}

.bg-driftwood { background-color: var(--color-driftwood); }
.text-driftwood { color: var(--color-driftwood); }
.border-driftwood { border-color: var(--color-driftwood); }
.surface-driftwood {
  background-color: var(--color-driftwood);
  color: var(--color-driftwood-contrast);
  border: 1px solid color-mix(in srgb, var(--color-driftwood), #111827 18%);
}
.shadow-driftwood { box-shadow: 0 18px 40px rgb(var(--color-driftwood-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 contrast7.63:1
White contrast2.75:1
RGB token166 154 141

Machine-readable data

Machine-Readable Driftwood CSS Utilities (JSON)

Structured CSS utility data for Driftwood, including variables, utility classes, contrast tokens, WCAG metadata, snippets, and API links.

AI-Ready Dataset v1.0.0
Luminance0.3314
Black text7.63:1AA Pass
White text2.75: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-driftwood: #A69A8D;",
  "rgb": "--color-driftwood-rgb: 166 154 141;",
  "contrast": "--color-driftwood-contrast: #111827;"
}
Utility classes
{
  "background": ".bg-driftwood",
  "text": ".text-driftwood",
  "border": ".border-driftwood",
  "surface": ".surface-driftwood",
  "shadow": ".shadow-driftwood"
}
Accessibility
{
  "bestTextColor": "#111827",
  "contrast": {
    "black": 7.63,
    "white": 2.75
  },
  "wcag": {
    "AA": [
      "#000000",
      "#1A1A1A"
    ],
    "AAA": [
      "#000000"
    ]
  }
}
Implementation
{
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "cssSnippet": ":root {\n  --color-driftwood: #A69A8D;\n  --color-driftwood-rgb: 166 154 141;\n  --color-driftwood-contrast: #111827;\n}\n\n.bg-driftwood { background-color: var(--color-driftwood); }\n.text-driftwood { color: var(--color-driftwood); }\n.border-driftwood { border-color: var(--color-driftwood); }\n.surface-driftwood {\n  background-color: var(--color-driftwood);\n  color: var(--color-driftwood-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-driftwood), #111827 18%);\n}\n.shadow-driftwood { box-shadow: 0 18px 40px rgb(var(--color-driftwood-rgb) / 28%); }"
}
Related endpoints
[
  "https://www.colorsencyclopedia.com/api/css/colors/driftwood.json",
  "https://www.colorsencyclopedia.com/api/colors/driftwood.json"
]
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "driftwood",
  "name": "Driftwood",
  "hex": "#A69A8D",
  "rgb": [
    166,
    154,
    141
  ],
  "hsl": [
    31,
    12,
    60
  ],
  "cmyk": [
    0,
    7,
    15,
    35
  ],
  "luminance": 0.3314,
  "contrast": {
    "black": 7.63,
    "white": 2.75
  },
  "wcag": {
    "AA": [
      "#000000",
      "#1A1A1A"
    ],
    "AAA": [
      "#000000"
    ]
  },
  "family": "orange",
  "temperature": "warm",
  "tone": [
    "muted",
    "earth-tone"
  ],
  "bestTextColor": "#111827",
  "cssVariables": {
    "color": "--color-driftwood: #A69A8D;",
    "rgb": "--color-driftwood-rgb: 166 154 141;",
    "contrast": "--color-driftwood-contrast: #111827;"
  },
  "utilityClasses": {
    "background": ".bg-driftwood",
    "text": ".text-driftwood",
    "border": ".border-driftwood",
    "surface": ".surface-driftwood",
    "shadow": ".shadow-driftwood"
  },
  "cssSnippet": ":root {\n  --color-driftwood: #A69A8D;\n  --color-driftwood-rgb: 166 154 141;\n  --color-driftwood-contrast: #111827;\n}\n\n.bg-driftwood { background-color: var(--color-driftwood); }\n.text-driftwood { color: var(--color-driftwood); }\n.border-driftwood { border-color: var(--color-driftwood); }\n.surface-driftwood {\n  background-color: var(--color-driftwood);\n  color: var(--color-driftwood-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-driftwood), #111827 18%);\n}\n.shadow-driftwood { box-shadow: 0 18px 40px rgb(var(--color-driftwood-rgb) / 28%); }",
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "relatedEndpoints": [
    "https://www.colorsencyclopedia.com/api/css/colors/driftwood.json",
    "https://www.colorsencyclopedia.com/api/colors/driftwood.json"
  ],
  "url": "https://www.colorsencyclopedia.com/css/colors/driftwood/",
  "colorUrl": "https://www.colorsencyclopedia.com/colors/driftwood/",
  "hexUrl": "https://www.colorsencyclopedia.com/hex/a69a8d/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/driftwood.json"
}