CSS utility

Greige CSS Utilities

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

Utility Classes

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

CSS Snippet

:root {
  --color-greige: #B0A999;
  --color-greige-rgb: 176 169 153;
  --color-greige-contrast: #111827;
}

.bg-greige { background-color: var(--color-greige); }
.text-greige { color: var(--color-greige); }
.border-greige { border-color: var(--color-greige); }
.surface-greige {
  background-color: var(--color-greige);
  color: var(--color-greige-contrast);
  border: 1px solid color-mix(in srgb, var(--color-greige), #111827 18%);
}
.shadow-greige { box-shadow: 0 18px 40px rgb(var(--color-greige-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 contrast8.98:1
White contrast2.34:1
RGB token176 169 153

Machine-readable data

Machine-Readable Greige CSS Utilities (JSON)

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

AI-Ready Dataset v1.0.0
Luminance0.3991
Black text8.98:1AA Pass
White text2.34: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-greige: #B0A999;",
  "rgb": "--color-greige-rgb: 176 169 153;",
  "contrast": "--color-greige-contrast: #111827;"
}
Utility classes
{
  "background": ".bg-greige",
  "text": ".text-greige",
  "border": ".border-greige",
  "surface": ".surface-greige",
  "shadow": ".shadow-greige"
}
Accessibility
{
  "bestTextColor": "#111827",
  "contrast": {
    "black": 8.98,
    "white": 2.34
  },
  "wcag": {
    "AA": [
      "#000000",
      "#1A1A1A"
    ],
    "AAA": [
      "#000000",
      "#1A1A1A"
    ]
  }
}
Implementation
{
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "cssSnippet": ":root {\n  --color-greige: #B0A999;\n  --color-greige-rgb: 176 169 153;\n  --color-greige-contrast: #111827;\n}\n\n.bg-greige { background-color: var(--color-greige); }\n.text-greige { color: var(--color-greige); }\n.border-greige { border-color: var(--color-greige); }\n.surface-greige {\n  background-color: var(--color-greige);\n  color: var(--color-greige-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-greige), #111827 18%);\n}\n.shadow-greige { box-shadow: 0 18px 40px rgb(var(--color-greige-rgb) / 28%); }"
}
Related endpoints
[
  "https://www.colorsencyclopedia.com/api/css/colors/greige.json",
  "https://www.colorsencyclopedia.com/api/colors/greige.json"
]
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "greige",
  "name": "Greige",
  "hex": "#B0A999",
  "rgb": [
    176,
    169,
    153
  ],
  "hsl": [
    42,
    13,
    65
  ],
  "cmyk": [
    0,
    4,
    13,
    31
  ],
  "luminance": 0.3991,
  "contrast": {
    "black": 8.98,
    "white": 2.34
  },
  "wcag": {
    "AA": [
      "#000000",
      "#1A1A1A"
    ],
    "AAA": [
      "#000000",
      "#1A1A1A"
    ]
  },
  "family": "orange",
  "temperature": "warm",
  "tone": [
    "muted",
    "earth-tone"
  ],
  "bestTextColor": "#111827",
  "cssVariables": {
    "color": "--color-greige: #B0A999;",
    "rgb": "--color-greige-rgb: 176 169 153;",
    "contrast": "--color-greige-contrast: #111827;"
  },
  "utilityClasses": {
    "background": ".bg-greige",
    "text": ".text-greige",
    "border": ".border-greige",
    "surface": ".surface-greige",
    "shadow": ".shadow-greige"
  },
  "cssSnippet": ":root {\n  --color-greige: #B0A999;\n  --color-greige-rgb: 176 169 153;\n  --color-greige-contrast: #111827;\n}\n\n.bg-greige { background-color: var(--color-greige); }\n.text-greige { color: var(--color-greige); }\n.border-greige { border-color: var(--color-greige); }\n.surface-greige {\n  background-color: var(--color-greige);\n  color: var(--color-greige-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-greige), #111827 18%);\n}\n.shadow-greige { box-shadow: 0 18px 40px rgb(var(--color-greige-rgb) / 28%); }",
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "relatedEndpoints": [
    "https://www.colorsencyclopedia.com/api/css/colors/greige.json",
    "https://www.colorsencyclopedia.com/api/colors/greige.json"
  ],
  "url": "https://www.colorsencyclopedia.com/css/colors/greige/",
  "colorUrl": "https://www.colorsencyclopedia.com/colors/greige/",
  "hexUrl": "https://www.colorsencyclopedia.com/hex/b0a999/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/greige.json"
}