CSS utility
Cactus Green CSS Utilities
Cactus Green CSS utilities provide reusable variables and utility classes for #587156. 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
Cactus Green
#587156
Utility Classes
CSS Snippet
:root {
--color-cactus-green: #587156;
--color-cactus-green-rgb: 88 113 86;
--color-cactus-green-contrast: #FFFFFF;
}
.bg-cactus-green { background-color: var(--color-cactus-green); }
.text-cactus-green { color: var(--color-cactus-green); }
.border-cactus-green { border-color: var(--color-cactus-green); }
.surface-cactus-green {
background-color: var(--color-cactus-green);
color: var(--color-cactus-green-contrast);
border: 1px solid color-mix(in srgb, var(--color-cactus-green), #111827 18%);
}
.shadow-cactus-green { box-shadow: 0 18px 40px rgb(var(--color-cactus-green-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 Cactus Green CSS Utilities (JSON)
Structured CSS utility data for Cactus Green, including variables, utility classes, contrast tokens, WCAG metadata, snippets, and API links.
Luminance0.1456
Black text3.91:1AA Fail
White text5.37: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-cactus-green: #587156;",
"rgb": "--color-cactus-green-rgb: 88 113 86;",
"contrast": "--color-cactus-green-contrast: #FFFFFF;"
}Utility classes
{
"background": ".bg-cactus-green",
"text": ".text-cactus-green",
"border": ".border-cactus-green",
"surface": ".surface-cactus-green",
"shadow": ".shadow-cactus-green"
}Accessibility
{
"bestTextColor": "#FFFFFF",
"contrast": {
"black": 3.91,
"white": 5.37
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": []
}
}Implementation
{
"useCases": [
"CSS variables",
"utility classes",
"design system tokens",
"UI surface styling",
"accessible text pairing"
],
"cssSnippet": ":root {\n --color-cactus-green: #587156;\n --color-cactus-green-rgb: 88 113 86;\n --color-cactus-green-contrast: #FFFFFF;\n}\n\n.bg-cactus-green { background-color: var(--color-cactus-green); }\n.text-cactus-green { color: var(--color-cactus-green); }\n.border-cactus-green { border-color: var(--color-cactus-green); }\n.surface-cactus-green {\n background-color: var(--color-cactus-green);\n color: var(--color-cactus-green-contrast);\n border: 1px solid color-mix(in srgb, var(--color-cactus-green), #111827 18%);\n}\n.shadow-cactus-green { box-shadow: 0 18px 40px rgb(var(--color-cactus-green-rgb) / 28%); }"
}Related endpoints
[
"https://www.colorsencyclopedia.com/api/css/colors/cactus-green.json",
"https://www.colorsencyclopedia.com/api/colors/cactus-green.json"
]Full JSON dataset
{
"datasetVersion": "1.0.0",
"slug": "cactus-green",
"name": "Cactus Green",
"hex": "#587156",
"rgb": [
88,
113,
86
],
"hsl": [
116,
14,
39
],
"cmyk": [
22,
0,
24,
56
],
"luminance": 0.1456,
"contrast": {
"black": 3.91,
"white": 5.37
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": []
},
"family": "green",
"temperature": "cool",
"tone": [
"muted",
"earth-tone"
],
"bestTextColor": "#FFFFFF",
"cssVariables": {
"color": "--color-cactus-green: #587156;",
"rgb": "--color-cactus-green-rgb: 88 113 86;",
"contrast": "--color-cactus-green-contrast: #FFFFFF;"
},
"utilityClasses": {
"background": ".bg-cactus-green",
"text": ".text-cactus-green",
"border": ".border-cactus-green",
"surface": ".surface-cactus-green",
"shadow": ".shadow-cactus-green"
},
"cssSnippet": ":root {\n --color-cactus-green: #587156;\n --color-cactus-green-rgb: 88 113 86;\n --color-cactus-green-contrast: #FFFFFF;\n}\n\n.bg-cactus-green { background-color: var(--color-cactus-green); }\n.text-cactus-green { color: var(--color-cactus-green); }\n.border-cactus-green { border-color: var(--color-cactus-green); }\n.surface-cactus-green {\n background-color: var(--color-cactus-green);\n color: var(--color-cactus-green-contrast);\n border: 1px solid color-mix(in srgb, var(--color-cactus-green), #111827 18%);\n}\n.shadow-cactus-green { box-shadow: 0 18px 40px rgb(var(--color-cactus-green-rgb) / 28%); }",
"useCases": [
"CSS variables",
"utility classes",
"design system tokens",
"UI surface styling",
"accessible text pairing"
],
"relatedEndpoints": [
"https://www.colorsencyclopedia.com/api/css/colors/cactus-green.json",
"https://www.colorsencyclopedia.com/api/colors/cactus-green.json"
],
"url": "https://www.colorsencyclopedia.com/css/colors/cactus-green/",
"colorUrl": "https://www.colorsencyclopedia.com/colors/cactus-green/",
"hexUrl": "https://www.colorsencyclopedia.com/hex/587156/",
"apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/cactus-green.json"
}