CSS utility
Roman Red CSS Utilities
Roman Red CSS utilities provide reusable variables and utility classes for #CD5C5C. 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
Roman Red
#CD5C5C
Utility Classes
CSS Snippet
:root {
--color-roman-red: #CD5C5C;
--color-roman-red-rgb: 205 92 92;
--color-roman-red-contrast: #111827;
}
.bg-roman-red { background-color: var(--color-roman-red); }
.text-roman-red { color: var(--color-roman-red); }
.border-roman-red { border-color: var(--color-roman-red); }
.surface-roman-red {
background-color: var(--color-roman-red);
color: var(--color-roman-red-contrast);
border: 1px solid color-mix(in srgb, var(--color-roman-red), #111827 18%);
}
.shadow-roman-red { box-shadow: 0 18px 40px rgb(var(--color-roman-red-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
Machine-readable data
Machine-Readable Roman Red CSS Utilities (JSON)
Structured CSS utility data for Roman Red, including variables, utility classes, contrast tokens, WCAG metadata, snippets, and API links.
Luminance0.2141
Black text5.28:1AA Pass
White text3.98:1AA Fail
cssVariablesReusable CSS custom propertiesutilityClassesBackground, text, border, surface, and shadow classesbestTextColorAccessible default foreground tokencontrastBlack and white contrast ratioswcagAA and AAA text color optionsrelatedEndpointsLinked machine-readable resourcesStructured sections
CSS variables
{
"color": "--color-roman-red: #CD5C5C;",
"rgb": "--color-roman-red-rgb: 205 92 92;",
"contrast": "--color-roman-red-contrast: #111827;"
}Utility classes
{
"background": ".bg-roman-red",
"text": ".text-roman-red",
"border": ".border-roman-red",
"surface": ".surface-roman-red",
"shadow": ".shadow-roman-red"
}Accessibility
{
"bestTextColor": "#111827",
"contrast": {
"black": 5.28,
"white": 3.98
},
"wcag": {
"AA": [
"#000000"
],
"AAA": []
}
}Implementation
{
"useCases": [
"CSS variables",
"utility classes",
"design system tokens",
"UI surface styling",
"accessible text pairing"
],
"cssSnippet": ":root {\n --color-roman-red: #CD5C5C;\n --color-roman-red-rgb: 205 92 92;\n --color-roman-red-contrast: #111827;\n}\n\n.bg-roman-red { background-color: var(--color-roman-red); }\n.text-roman-red { color: var(--color-roman-red); }\n.border-roman-red { border-color: var(--color-roman-red); }\n.surface-roman-red {\n background-color: var(--color-roman-red);\n color: var(--color-roman-red-contrast);\n border: 1px solid color-mix(in srgb, var(--color-roman-red), #111827 18%);\n}\n.shadow-roman-red { box-shadow: 0 18px 40px rgb(var(--color-roman-red-rgb) / 28%); }"
}Related endpoints
[
"https://www.colorsencyclopedia.com/api/css/colors/roman-red.json",
"https://www.colorsencyclopedia.com/api/colors/roman-red.json"
]Full JSON dataset
{
"datasetVersion": "1.0.0",
"slug": "roman-red",
"name": "Roman Red",
"hex": "#CD5C5C",
"rgb": [
205,
92,
92
],
"hsl": [
0,
53,
58
],
"cmyk": [
0,
55,
55,
20
],
"luminance": 0.2141,
"contrast": {
"black": 5.28,
"white": 3.98
},
"wcag": {
"AA": [
"#000000"
],
"AAA": []
},
"family": "red",
"temperature": "warm",
"tone": [
"balanced"
],
"bestTextColor": "#111827",
"cssVariables": {
"color": "--color-roman-red: #CD5C5C;",
"rgb": "--color-roman-red-rgb: 205 92 92;",
"contrast": "--color-roman-red-contrast: #111827;"
},
"utilityClasses": {
"background": ".bg-roman-red",
"text": ".text-roman-red",
"border": ".border-roman-red",
"surface": ".surface-roman-red",
"shadow": ".shadow-roman-red"
},
"cssSnippet": ":root {\n --color-roman-red: #CD5C5C;\n --color-roman-red-rgb: 205 92 92;\n --color-roman-red-contrast: #111827;\n}\n\n.bg-roman-red { background-color: var(--color-roman-red); }\n.text-roman-red { color: var(--color-roman-red); }\n.border-roman-red { border-color: var(--color-roman-red); }\n.surface-roman-red {\n background-color: var(--color-roman-red);\n color: var(--color-roman-red-contrast);\n border: 1px solid color-mix(in srgb, var(--color-roman-red), #111827 18%);\n}\n.shadow-roman-red { box-shadow: 0 18px 40px rgb(var(--color-roman-red-rgb) / 28%); }",
"useCases": [
"CSS variables",
"utility classes",
"design system tokens",
"UI surface styling",
"accessible text pairing"
],
"relatedEndpoints": [
"https://www.colorsencyclopedia.com/api/css/colors/roman-red.json",
"https://www.colorsencyclopedia.com/api/colors/roman-red.json"
],
"url": "https://www.colorsencyclopedia.com/css/colors/roman-red/",
"colorUrl": "https://www.colorsencyclopedia.com/colors/roman-red/",
"hexUrl": "https://www.colorsencyclopedia.com/hex/cd5c5c/",
"apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/roman-red.json"
}