CSS utility
Emerald CSS Utilities
Emerald CSS utilities provide reusable variables and utility classes for #50C878. 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
Emerald
#50C878
Utility Classes
CSS Snippet
:root {
--color-emerald: #50C878;
--color-emerald-rgb: 80 200 120;
--color-emerald-contrast: #111827;
}
.bg-emerald { background-color: var(--color-emerald); }
.text-emerald { color: var(--color-emerald); }
.border-emerald { border-color: var(--color-emerald); }
.surface-emerald {
background-color: var(--color-emerald);
color: var(--color-emerald-contrast);
border: 1px solid color-mix(in srgb, var(--color-emerald), #111827 18%);
}
.shadow-emerald { box-shadow: 0 18px 40px rgb(var(--color-emerald-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 Emerald CSS Utilities (JSON)
Structured CSS utility data for Emerald, including variables, utility classes, contrast tokens, WCAG metadata, snippets, and API links.
Luminance0.4437
Black text9.87:1AA Pass
White text2.13: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-emerald: #50C878;",
"rgb": "--color-emerald-rgb: 80 200 120;",
"contrast": "--color-emerald-contrast: #111827;"
}Utility classes
{
"background": ".bg-emerald",
"text": ".text-emerald",
"border": ".border-emerald",
"surface": ".surface-emerald",
"shadow": ".shadow-emerald"
}Accessibility
{
"bestTextColor": "#111827",
"contrast": {
"black": 9.87,
"white": 2.13
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A",
"#36454F"
],
"AAA": [
"#000000",
"#1A1A1A"
]
}
}Implementation
{
"useCases": [
"CSS variables",
"utility classes",
"design system tokens",
"UI surface styling",
"accessible text pairing"
],
"cssSnippet": ":root {\n --color-emerald: #50C878;\n --color-emerald-rgb: 80 200 120;\n --color-emerald-contrast: #111827;\n}\n\n.bg-emerald { background-color: var(--color-emerald); }\n.text-emerald { color: var(--color-emerald); }\n.border-emerald { border-color: var(--color-emerald); }\n.surface-emerald {\n background-color: var(--color-emerald);\n color: var(--color-emerald-contrast);\n border: 1px solid color-mix(in srgb, var(--color-emerald), #111827 18%);\n}\n.shadow-emerald { box-shadow: 0 18px 40px rgb(var(--color-emerald-rgb) / 28%); }"
}Related endpoints
[
"https://www.colorsencyclopedia.com/api/css/colors/emerald.json",
"https://www.colorsencyclopedia.com/api/colors/emerald.json"
]Full JSON dataset
{
"datasetVersion": "1.0.0",
"slug": "emerald",
"name": "Emerald",
"hex": "#50C878",
"rgb": [
80,
200,
120
],
"hsl": [
140,
52,
55
],
"cmyk": [
60,
0,
40,
22
],
"luminance": 0.4437,
"contrast": {
"black": 9.87,
"white": 2.13
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A",
"#36454F"
],
"AAA": [
"#000000",
"#1A1A1A"
]
},
"family": "green",
"temperature": "cool",
"tone": [
"earth-tone"
],
"bestTextColor": "#111827",
"cssVariables": {
"color": "--color-emerald: #50C878;",
"rgb": "--color-emerald-rgb: 80 200 120;",
"contrast": "--color-emerald-contrast: #111827;"
},
"utilityClasses": {
"background": ".bg-emerald",
"text": ".text-emerald",
"border": ".border-emerald",
"surface": ".surface-emerald",
"shadow": ".shadow-emerald"
},
"cssSnippet": ":root {\n --color-emerald: #50C878;\n --color-emerald-rgb: 80 200 120;\n --color-emerald-contrast: #111827;\n}\n\n.bg-emerald { background-color: var(--color-emerald); }\n.text-emerald { color: var(--color-emerald); }\n.border-emerald { border-color: var(--color-emerald); }\n.surface-emerald {\n background-color: var(--color-emerald);\n color: var(--color-emerald-contrast);\n border: 1px solid color-mix(in srgb, var(--color-emerald), #111827 18%);\n}\n.shadow-emerald { box-shadow: 0 18px 40px rgb(var(--color-emerald-rgb) / 28%); }",
"useCases": [
"CSS variables",
"utility classes",
"design system tokens",
"UI surface styling",
"accessible text pairing"
],
"relatedEndpoints": [
"https://www.colorsencyclopedia.com/api/css/colors/emerald.json",
"https://www.colorsencyclopedia.com/api/colors/emerald.json"
],
"url": "https://www.colorsencyclopedia.com/css/colors/emerald/",
"colorUrl": "https://www.colorsencyclopedia.com/colors/emerald/",
"hexUrl": "https://www.colorsencyclopedia.com/hex/50c878/",
"apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/emerald.json"
}