CSS utility

River Stone CSS Utilities

River Stone CSS utilities provide reusable variables and utility classes for #7E8A8A. 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 River Stone #7E8A8A

Utility Classes

Background.bg-river-stone
Text.text-river-stone
Border.border-river-stone
Surface.surface-river-stone

CSS Snippet

:root {
  --color-river-stone: #7E8A8A;
  --color-river-stone-rgb: 126 138 138;
  --color-river-stone-contrast: #111827;
}

.bg-river-stone { background-color: var(--color-river-stone); }
.text-river-stone { color: var(--color-river-stone); }
.border-river-stone { border-color: var(--color-river-stone); }
.surface-river-stone {
  background-color: var(--color-river-stone);
  color: var(--color-river-stone-contrast);
  border: 1px solid color-mix(in srgb, var(--color-river-stone), #111827 18%);
}
.shadow-river-stone { box-shadow: 0 18px 40px rgb(var(--color-river-stone-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 contrast5.89:1
White contrast3.57:1
RGB token126 138 138

Machine-readable data

Machine-Readable River Stone CSS Utilities (JSON)

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

AI-Ready Dataset v1.0.0
Luminance0.2445
Black text5.89:1AA Pass
White text3.57: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-river-stone: #7E8A8A;",
  "rgb": "--color-river-stone-rgb: 126 138 138;",
  "contrast": "--color-river-stone-contrast: #111827;"
}
Utility classes
{
  "background": ".bg-river-stone",
  "text": ".text-river-stone",
  "border": ".border-river-stone",
  "surface": ".surface-river-stone",
  "shadow": ".shadow-river-stone"
}
Accessibility
{
  "bestTextColor": "#111827",
  "contrast": {
    "black": 5.89,
    "white": 3.57
  },
  "wcag": {
    "AA": [
      "#000000",
      "#1A1A1A"
    ],
    "AAA": []
  }
}
Implementation
{
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "cssSnippet": ":root {\n  --color-river-stone: #7E8A8A;\n  --color-river-stone-rgb: 126 138 138;\n  --color-river-stone-contrast: #111827;\n}\n\n.bg-river-stone { background-color: var(--color-river-stone); }\n.text-river-stone { color: var(--color-river-stone); }\n.border-river-stone { border-color: var(--color-river-stone); }\n.surface-river-stone {\n  background-color: var(--color-river-stone);\n  color: var(--color-river-stone-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-river-stone), #111827 18%);\n}\n.shadow-river-stone { box-shadow: 0 18px 40px rgb(var(--color-river-stone-rgb) / 28%); }"
}
Related endpoints
[
  "https://www.colorsencyclopedia.com/api/css/colors/river-stone.json",
  "https://www.colorsencyclopedia.com/api/colors/river-stone.json"
]
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "river-stone",
  "name": "River Stone",
  "hex": "#7E8A8A",
  "rgb": [
    126,
    138,
    138
  ],
  "hsl": [
    180,
    5,
    52
  ],
  "cmyk": [
    9,
    0,
    0,
    46
  ],
  "luminance": 0.2445,
  "contrast": {
    "black": 5.89,
    "white": 3.57
  },
  "wcag": {
    "AA": [
      "#000000",
      "#1A1A1A"
    ],
    "AAA": []
  },
  "family": "gray",
  "temperature": "neutral",
  "tone": [
    "muted"
  ],
  "bestTextColor": "#111827",
  "cssVariables": {
    "color": "--color-river-stone: #7E8A8A;",
    "rgb": "--color-river-stone-rgb: 126 138 138;",
    "contrast": "--color-river-stone-contrast: #111827;"
  },
  "utilityClasses": {
    "background": ".bg-river-stone",
    "text": ".text-river-stone",
    "border": ".border-river-stone",
    "surface": ".surface-river-stone",
    "shadow": ".shadow-river-stone"
  },
  "cssSnippet": ":root {\n  --color-river-stone: #7E8A8A;\n  --color-river-stone-rgb: 126 138 138;\n  --color-river-stone-contrast: #111827;\n}\n\n.bg-river-stone { background-color: var(--color-river-stone); }\n.text-river-stone { color: var(--color-river-stone); }\n.border-river-stone { border-color: var(--color-river-stone); }\n.surface-river-stone {\n  background-color: var(--color-river-stone);\n  color: var(--color-river-stone-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-river-stone), #111827 18%);\n}\n.shadow-river-stone { box-shadow: 0 18px 40px rgb(var(--color-river-stone-rgb) / 28%); }",
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "relatedEndpoints": [
    "https://www.colorsencyclopedia.com/api/css/colors/river-stone.json",
    "https://www.colorsencyclopedia.com/api/colors/river-stone.json"
  ],
  "url": "https://www.colorsencyclopedia.com/css/colors/river-stone/",
  "colorUrl": "https://www.colorsencyclopedia.com/colors/river-stone/",
  "hexUrl": "https://www.colorsencyclopedia.com/hex/7e8a8a/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/river-stone.json"
}