CSS utility

Terracotta CSS Utilities

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

Utility Classes

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

CSS Snippet

:root {
  --color-terracotta: #E2725B;
  --color-terracotta-rgb: 226 114 91;
  --color-terracotta-contrast: #111827;
}

.bg-terracotta { background-color: var(--color-terracotta); }
.text-terracotta { color: var(--color-terracotta); }
.border-terracotta { border-color: var(--color-terracotta); }
.surface-terracotta {
  background-color: var(--color-terracotta);
  color: var(--color-terracotta-contrast);
  border: 1px solid color-mix(in srgb, var(--color-terracotta), #111827 18%);
}
.shadow-terracotta { box-shadow: 0 18px 40px rgb(var(--color-terracotta-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 contrast6.79:1
White contrast3.09:1
RGB token226 114 91

Machine-readable data

Machine-Readable Terracotta CSS Utilities (JSON)

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

AI-Ready Dataset v1.0.0
Luminance0.2896
Black text6.79:1AA Pass
White text3.09: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-terracotta: #E2725B;",
  "rgb": "--color-terracotta-rgb: 226 114 91;",
  "contrast": "--color-terracotta-contrast: #111827;"
}
Utility classes
{
  "background": ".bg-terracotta",
  "text": ".text-terracotta",
  "border": ".border-terracotta",
  "surface": ".surface-terracotta",
  "shadow": ".shadow-terracotta"
}
Accessibility
{
  "bestTextColor": "#111827",
  "contrast": {
    "black": 6.79,
    "white": 3.09
  },
  "wcag": {
    "AA": [
      "#000000",
      "#1A1A1A"
    ],
    "AAA": []
  }
}
Implementation
{
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "cssSnippet": ":root {\n  --color-terracotta: #E2725B;\n  --color-terracotta-rgb: 226 114 91;\n  --color-terracotta-contrast: #111827;\n}\n\n.bg-terracotta { background-color: var(--color-terracotta); }\n.text-terracotta { color: var(--color-terracotta); }\n.border-terracotta { border-color: var(--color-terracotta); }\n.surface-terracotta {\n  background-color: var(--color-terracotta);\n  color: var(--color-terracotta-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-terracotta), #111827 18%);\n}\n.shadow-terracotta { box-shadow: 0 18px 40px rgb(var(--color-terracotta-rgb) / 28%); }"
}
Related endpoints
[
  "https://www.colorsencyclopedia.com/api/css/colors/terracotta.json",
  "https://www.colorsencyclopedia.com/api/colors/terracotta.json"
]
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "terracotta",
  "name": "Terracotta",
  "hex": "#E2725B",
  "rgb": [
    226,
    114,
    91
  ],
  "hsl": [
    10,
    70,
    62
  ],
  "cmyk": [
    0,
    50,
    60,
    11
  ],
  "luminance": 0.2896,
  "contrast": {
    "black": 6.79,
    "white": 3.09
  },
  "wcag": {
    "AA": [
      "#000000",
      "#1A1A1A"
    ],
    "AAA": []
  },
  "family": "orange",
  "temperature": "warm",
  "tone": [
    "earth-tone",
    "muted"
  ],
  "bestTextColor": "#111827",
  "cssVariables": {
    "color": "--color-terracotta: #E2725B;",
    "rgb": "--color-terracotta-rgb: 226 114 91;",
    "contrast": "--color-terracotta-contrast: #111827;"
  },
  "utilityClasses": {
    "background": ".bg-terracotta",
    "text": ".text-terracotta",
    "border": ".border-terracotta",
    "surface": ".surface-terracotta",
    "shadow": ".shadow-terracotta"
  },
  "cssSnippet": ":root {\n  --color-terracotta: #E2725B;\n  --color-terracotta-rgb: 226 114 91;\n  --color-terracotta-contrast: #111827;\n}\n\n.bg-terracotta { background-color: var(--color-terracotta); }\n.text-terracotta { color: var(--color-terracotta); }\n.border-terracotta { border-color: var(--color-terracotta); }\n.surface-terracotta {\n  background-color: var(--color-terracotta);\n  color: var(--color-terracotta-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-terracotta), #111827 18%);\n}\n.shadow-terracotta { box-shadow: 0 18px 40px rgb(var(--color-terracotta-rgb) / 28%); }",
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "relatedEndpoints": [
    "https://www.colorsencyclopedia.com/api/css/colors/terracotta.json",
    "https://www.colorsencyclopedia.com/api/colors/terracotta.json"
  ],
  "url": "https://www.colorsencyclopedia.com/css/colors/terracotta/",
  "colorUrl": "https://www.colorsencyclopedia.com/colors/terracotta/",
  "hexUrl": "https://www.colorsencyclopedia.com/hex/e2725b/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/terracotta.json"
}