CSS utility

Kelly Green CSS Utilities

Kelly Green CSS utilities provide reusable variables and utility classes for #4CBB17. 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 Kelly Green #4CBB17

Utility Classes

Background.bg-kelly-green
Text.text-kelly-green
Border.border-kelly-green
Surface.surface-kelly-green

CSS Snippet

:root {
  --color-kelly-green: #4CBB17;
  --color-kelly-green-rgb: 76 187 23;
  --color-kelly-green-contrast: #111827;
}

.bg-kelly-green { background-color: var(--color-kelly-green); }
.text-kelly-green { color: var(--color-kelly-green); }
.border-kelly-green { border-color: var(--color-kelly-green); }
.surface-kelly-green {
  background-color: var(--color-kelly-green);
  color: var(--color-kelly-green-contrast);
  border: 1px solid color-mix(in srgb, var(--color-kelly-green), #111827 18%);
}
.shadow-kelly-green { box-shadow: 0 18px 40px rgb(var(--color-kelly-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

Best text color#111827
Black contrast8.43:1
White contrast2.49:1
RGB token76 187 23

Machine-readable data

Machine-Readable Kelly Green CSS Utilities (JSON)

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

AI-Ready Dataset v1.0.0
Luminance0.3714
Black text8.43:1AA Pass
White text2.49:1AA Fail
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-kelly-green: #4CBB17;",
  "rgb": "--color-kelly-green-rgb: 76 187 23;",
  "contrast": "--color-kelly-green-contrast: #111827;"
}
Utility classes
{
  "background": ".bg-kelly-green",
  "text": ".text-kelly-green",
  "border": ".border-kelly-green",
  "surface": ".surface-kelly-green",
  "shadow": ".shadow-kelly-green"
}
Accessibility
{
  "bestTextColor": "#111827",
  "contrast": {
    "black": 8.43,
    "white": 2.49
  },
  "wcag": {
    "AA": [
      "#000000",
      "#1A1A1A"
    ],
    "AAA": [
      "#000000"
    ]
  }
}
Implementation
{
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "cssSnippet": ":root {\n  --color-kelly-green: #4CBB17;\n  --color-kelly-green-rgb: 76 187 23;\n  --color-kelly-green-contrast: #111827;\n}\n\n.bg-kelly-green { background-color: var(--color-kelly-green); }\n.text-kelly-green { color: var(--color-kelly-green); }\n.border-kelly-green { border-color: var(--color-kelly-green); }\n.surface-kelly-green {\n  background-color: var(--color-kelly-green);\n  color: var(--color-kelly-green-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-kelly-green), #111827 18%);\n}\n.shadow-kelly-green { box-shadow: 0 18px 40px rgb(var(--color-kelly-green-rgb) / 28%); }"
}
Related endpoints
[
  "https://www.colorsencyclopedia.com/api/css/colors/kelly-green.json",
  "https://www.colorsencyclopedia.com/api/colors/kelly-green.json"
]
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "kelly-green",
  "name": "Kelly Green",
  "hex": "#4CBB17",
  "rgb": [
    76,
    187,
    23
  ],
  "hsl": [
    101,
    78,
    41
  ],
  "cmyk": [
    59,
    0,
    88,
    27
  ],
  "luminance": 0.3714,
  "contrast": {
    "black": 8.43,
    "white": 2.49
  },
  "wcag": {
    "AA": [
      "#000000",
      "#1A1A1A"
    ],
    "AAA": [
      "#000000"
    ]
  },
  "family": "green",
  "temperature": "cool",
  "tone": [
    "vibrant",
    "jewel-tone"
  ],
  "bestTextColor": "#111827",
  "cssVariables": {
    "color": "--color-kelly-green: #4CBB17;",
    "rgb": "--color-kelly-green-rgb: 76 187 23;",
    "contrast": "--color-kelly-green-contrast: #111827;"
  },
  "utilityClasses": {
    "background": ".bg-kelly-green",
    "text": ".text-kelly-green",
    "border": ".border-kelly-green",
    "surface": ".surface-kelly-green",
    "shadow": ".shadow-kelly-green"
  },
  "cssSnippet": ":root {\n  --color-kelly-green: #4CBB17;\n  --color-kelly-green-rgb: 76 187 23;\n  --color-kelly-green-contrast: #111827;\n}\n\n.bg-kelly-green { background-color: var(--color-kelly-green); }\n.text-kelly-green { color: var(--color-kelly-green); }\n.border-kelly-green { border-color: var(--color-kelly-green); }\n.surface-kelly-green {\n  background-color: var(--color-kelly-green);\n  color: var(--color-kelly-green-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-kelly-green), #111827 18%);\n}\n.shadow-kelly-green { box-shadow: 0 18px 40px rgb(var(--color-kelly-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/kelly-green.json",
    "https://www.colorsencyclopedia.com/api/colors/kelly-green.json"
  ],
  "url": "https://www.colorsencyclopedia.com/css/colors/kelly-green/",
  "colorUrl": "https://www.colorsencyclopedia.com/colors/kelly-green/",
  "hexUrl": "https://www.colorsencyclopedia.com/hex/4cbb17/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/kelly-green.json"
}