CSS utility
Eggplant CSS Utilities
Eggplant CSS utilities provide reusable variables and utility classes for #614051. 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
Eggplant
#614051
Utility Classes
CSS Snippet
:root {
--color-eggplant: #614051;
--color-eggplant-rgb: 97 64 81;
--color-eggplant-contrast: #FFFFFF;
}
.bg-eggplant { background-color: var(--color-eggplant); }
.text-eggplant { color: var(--color-eggplant); }
.border-eggplant { border-color: var(--color-eggplant); }
.surface-eggplant {
background-color: var(--color-eggplant);
color: var(--color-eggplant-contrast);
border: 1px solid color-mix(in srgb, var(--color-eggplant), #111827 18%);
}
.shadow-eggplant { box-shadow: 0 18px 40px rgb(var(--color-eggplant-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 Eggplant CSS Utilities (JSON)
Structured CSS utility data for Eggplant, including variables, utility classes, contrast tokens, WCAG metadata, snippets, and API links.
Luminance0.068
Black text2.36:1AA Fail
White text8.9:1AA Pass
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-eggplant: #614051;",
"rgb": "--color-eggplant-rgb: 97 64 81;",
"contrast": "--color-eggplant-contrast: #FFFFFF;"
}Utility classes
{
"background": ".bg-eggplant",
"text": ".text-eggplant",
"border": ".border-eggplant",
"surface": ".surface-eggplant",
"shadow": ".shadow-eggplant"
}Accessibility
{
"bestTextColor": "#FFFFFF",
"contrast": {
"black": 2.36,
"white": 8.9
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": [
"#FFFFFF",
"#F5F5F5"
]
}
}Implementation
{
"useCases": [
"CSS variables",
"utility classes",
"design system tokens",
"UI surface styling",
"accessible text pairing"
],
"cssSnippet": ":root {\n --color-eggplant: #614051;\n --color-eggplant-rgb: 97 64 81;\n --color-eggplant-contrast: #FFFFFF;\n}\n\n.bg-eggplant { background-color: var(--color-eggplant); }\n.text-eggplant { color: var(--color-eggplant); }\n.border-eggplant { border-color: var(--color-eggplant); }\n.surface-eggplant {\n background-color: var(--color-eggplant);\n color: var(--color-eggplant-contrast);\n border: 1px solid color-mix(in srgb, var(--color-eggplant), #111827 18%);\n}\n.shadow-eggplant { box-shadow: 0 18px 40px rgb(var(--color-eggplant-rgb) / 28%); }"
}Related endpoints
[
"https://www.colorsencyclopedia.com/api/css/colors/eggplant.json",
"https://www.colorsencyclopedia.com/api/colors/eggplant.json"
]Full JSON dataset
{
"datasetVersion": "1.0.0",
"slug": "eggplant",
"name": "Eggplant",
"hex": "#614051",
"rgb": [
97,
64,
81
],
"hsl": [
329,
20,
32
],
"cmyk": [
0,
34,
16,
62
],
"luminance": 0.068,
"contrast": {
"black": 2.36,
"white": 8.9
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": [
"#FFFFFF",
"#F5F5F5"
]
},
"family": "pink",
"temperature": "warm",
"tone": [
"muted"
],
"bestTextColor": "#FFFFFF",
"cssVariables": {
"color": "--color-eggplant: #614051;",
"rgb": "--color-eggplant-rgb: 97 64 81;",
"contrast": "--color-eggplant-contrast: #FFFFFF;"
},
"utilityClasses": {
"background": ".bg-eggplant",
"text": ".text-eggplant",
"border": ".border-eggplant",
"surface": ".surface-eggplant",
"shadow": ".shadow-eggplant"
},
"cssSnippet": ":root {\n --color-eggplant: #614051;\n --color-eggplant-rgb: 97 64 81;\n --color-eggplant-contrast: #FFFFFF;\n}\n\n.bg-eggplant { background-color: var(--color-eggplant); }\n.text-eggplant { color: var(--color-eggplant); }\n.border-eggplant { border-color: var(--color-eggplant); }\n.surface-eggplant {\n background-color: var(--color-eggplant);\n color: var(--color-eggplant-contrast);\n border: 1px solid color-mix(in srgb, var(--color-eggplant), #111827 18%);\n}\n.shadow-eggplant { box-shadow: 0 18px 40px rgb(var(--color-eggplant-rgb) / 28%); }",
"useCases": [
"CSS variables",
"utility classes",
"design system tokens",
"UI surface styling",
"accessible text pairing"
],
"relatedEndpoints": [
"https://www.colorsencyclopedia.com/api/css/colors/eggplant.json",
"https://www.colorsencyclopedia.com/api/colors/eggplant.json"
],
"url": "https://www.colorsencyclopedia.com/css/colors/eggplant/",
"colorUrl": "https://www.colorsencyclopedia.com/colors/eggplant/",
"hexUrl": "https://www.colorsencyclopedia.com/hex/614051/",
"apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/eggplant.json"
}