CSS utility

Raspberry CSS Utilities

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

Utility Classes

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

CSS Snippet

:root {
  --color-raspberry: #E30B5D;
  --color-raspberry-rgb: 227 11 93;
  --color-raspberry-contrast: #FFFFFF;
}

.bg-raspberry { background-color: var(--color-raspberry); }
.text-raspberry { color: var(--color-raspberry); }
.border-raspberry { border-color: var(--color-raspberry); }
.surface-raspberry {
  background-color: var(--color-raspberry);
  color: var(--color-raspberry-contrast);
  border: 1px solid color-mix(in srgb, var(--color-raspberry), #111827 18%);
}
.shadow-raspberry { box-shadow: 0 18px 40px rgb(var(--color-raspberry-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#FFFFFF
Black contrast4.47:1
White contrast4.7:1
RGB token227 11 93

Machine-readable data

Machine-Readable Raspberry CSS Utilities (JSON)

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

AI-Ready Dataset v1.0.0
Luminance0.1736
Black text4.47:1AA Fail
White text4.7:1AA Pass
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-raspberry: #E30B5D;",
  "rgb": "--color-raspberry-rgb: 227 11 93;",
  "contrast": "--color-raspberry-contrast: #FFFFFF;"
}
Utility classes
{
  "background": ".bg-raspberry",
  "text": ".text-raspberry",
  "border": ".border-raspberry",
  "surface": ".surface-raspberry",
  "shadow": ".shadow-raspberry"
}
Accessibility
{
  "bestTextColor": "#FFFFFF",
  "contrast": {
    "black": 4.47,
    "white": 4.7
  },
  "wcag": {
    "AA": [
      "#FFFFFF"
    ],
    "AAA": []
  }
}
Implementation
{
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "cssSnippet": ":root {\n  --color-raspberry: #E30B5D;\n  --color-raspberry-rgb: 227 11 93;\n  --color-raspberry-contrast: #FFFFFF;\n}\n\n.bg-raspberry { background-color: var(--color-raspberry); }\n.text-raspberry { color: var(--color-raspberry); }\n.border-raspberry { border-color: var(--color-raspberry); }\n.surface-raspberry {\n  background-color: var(--color-raspberry);\n  color: var(--color-raspberry-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-raspberry), #111827 18%);\n}\n.shadow-raspberry { box-shadow: 0 18px 40px rgb(var(--color-raspberry-rgb) / 28%); }"
}
Related endpoints
[
  "https://www.colorsencyclopedia.com/api/css/colors/raspberry.json",
  "https://www.colorsencyclopedia.com/api/colors/raspberry.json"
]
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "raspberry",
  "name": "Raspberry",
  "hex": "#E30B5D",
  "rgb": [
    227,
    11,
    93
  ],
  "hsl": [
    337,
    91,
    47
  ],
  "cmyk": [
    0,
    95,
    59,
    11
  ],
  "luminance": 0.1736,
  "contrast": {
    "black": 4.47,
    "white": 4.7
  },
  "wcag": {
    "AA": [
      "#FFFFFF"
    ],
    "AAA": []
  },
  "family": "pink",
  "temperature": "warm",
  "tone": [
    "vibrant"
  ],
  "bestTextColor": "#FFFFFF",
  "cssVariables": {
    "color": "--color-raspberry: #E30B5D;",
    "rgb": "--color-raspberry-rgb: 227 11 93;",
    "contrast": "--color-raspberry-contrast: #FFFFFF;"
  },
  "utilityClasses": {
    "background": ".bg-raspberry",
    "text": ".text-raspberry",
    "border": ".border-raspberry",
    "surface": ".surface-raspberry",
    "shadow": ".shadow-raspberry"
  },
  "cssSnippet": ":root {\n  --color-raspberry: #E30B5D;\n  --color-raspberry-rgb: 227 11 93;\n  --color-raspberry-contrast: #FFFFFF;\n}\n\n.bg-raspberry { background-color: var(--color-raspberry); }\n.text-raspberry { color: var(--color-raspberry); }\n.border-raspberry { border-color: var(--color-raspberry); }\n.surface-raspberry {\n  background-color: var(--color-raspberry);\n  color: var(--color-raspberry-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-raspberry), #111827 18%);\n}\n.shadow-raspberry { box-shadow: 0 18px 40px rgb(var(--color-raspberry-rgb) / 28%); }",
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "relatedEndpoints": [
    "https://www.colorsencyclopedia.com/api/css/colors/raspberry.json",
    "https://www.colorsencyclopedia.com/api/colors/raspberry.json"
  ],
  "url": "https://www.colorsencyclopedia.com/css/colors/raspberry/",
  "colorUrl": "https://www.colorsencyclopedia.com/colors/raspberry/",
  "hexUrl": "https://www.colorsencyclopedia.com/hex/e30b5d/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/raspberry.json"
}