CSS utility

Traffic Green CSS Utilities

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

Utility Classes

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

CSS Snippet

:root {
  --color-traffic-green: #008450;
  --color-traffic-green-rgb: 0 132 80;
  --color-traffic-green-contrast: #FFFFFF;
}

.bg-traffic-green { background-color: var(--color-traffic-green); }
.text-traffic-green { color: var(--color-traffic-green); }
.border-traffic-green { border-color: var(--color-traffic-green); }
.surface-traffic-green {
  background-color: var(--color-traffic-green);
  color: var(--color-traffic-green-contrast);
  border: 1px solid color-mix(in srgb, var(--color-traffic-green), #111827 18%);
}
.shadow-traffic-green { box-shadow: 0 18px 40px rgb(var(--color-traffic-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#FFFFFF
Black contrast4.42:1
White contrast4.76:1
RGB token0 132 80

Machine-readable data

Machine-Readable Traffic Green CSS Utilities (JSON)

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

AI-Ready Dataset v1.0.0
Luminance0.1708
Black text4.42:1AA Fail
White text4.76:1AA Pass
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-traffic-green: #008450;",
  "rgb": "--color-traffic-green-rgb: 0 132 80;",
  "contrast": "--color-traffic-green-contrast: #FFFFFF;"
}
Utility classes
{
  "background": ".bg-traffic-green",
  "text": ".text-traffic-green",
  "border": ".border-traffic-green",
  "surface": ".surface-traffic-green",
  "shadow": ".shadow-traffic-green"
}
Accessibility
{
  "bestTextColor": "#FFFFFF",
  "contrast": {
    "black": 4.42,
    "white": 4.76
  },
  "wcag": {
    "AA": [
      "#FFFFFF"
    ],
    "AAA": []
  }
}
Implementation
{
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "cssSnippet": ":root {\n  --color-traffic-green: #008450;\n  --color-traffic-green-rgb: 0 132 80;\n  --color-traffic-green-contrast: #FFFFFF;\n}\n\n.bg-traffic-green { background-color: var(--color-traffic-green); }\n.text-traffic-green { color: var(--color-traffic-green); }\n.border-traffic-green { border-color: var(--color-traffic-green); }\n.surface-traffic-green {\n  background-color: var(--color-traffic-green);\n  color: var(--color-traffic-green-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-traffic-green), #111827 18%);\n}\n.shadow-traffic-green { box-shadow: 0 18px 40px rgb(var(--color-traffic-green-rgb) / 28%); }"
}
Related endpoints
[
  "https://www.colorsencyclopedia.com/api/css/colors/traffic-green.json",
  "https://www.colorsencyclopedia.com/api/colors/traffic-green.json"
]
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "traffic-green",
  "name": "Traffic Green",
  "hex": "#008450",
  "rgb": [
    0,
    132,
    80
  ],
  "hsl": [
    156,
    100,
    26
  ],
  "cmyk": [
    100,
    0,
    39,
    48
  ],
  "luminance": 0.1708,
  "contrast": {
    "black": 4.42,
    "white": 4.76
  },
  "wcag": {
    "AA": [
      "#FFFFFF"
    ],
    "AAA": []
  },
  "family": "green",
  "temperature": "cool",
  "tone": [
    "jewel-tone"
  ],
  "bestTextColor": "#FFFFFF",
  "cssVariables": {
    "color": "--color-traffic-green: #008450;",
    "rgb": "--color-traffic-green-rgb: 0 132 80;",
    "contrast": "--color-traffic-green-contrast: #FFFFFF;"
  },
  "utilityClasses": {
    "background": ".bg-traffic-green",
    "text": ".text-traffic-green",
    "border": ".border-traffic-green",
    "surface": ".surface-traffic-green",
    "shadow": ".shadow-traffic-green"
  },
  "cssSnippet": ":root {\n  --color-traffic-green: #008450;\n  --color-traffic-green-rgb: 0 132 80;\n  --color-traffic-green-contrast: #FFFFFF;\n}\n\n.bg-traffic-green { background-color: var(--color-traffic-green); }\n.text-traffic-green { color: var(--color-traffic-green); }\n.border-traffic-green { border-color: var(--color-traffic-green); }\n.surface-traffic-green {\n  background-color: var(--color-traffic-green);\n  color: var(--color-traffic-green-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-traffic-green), #111827 18%);\n}\n.shadow-traffic-green { box-shadow: 0 18px 40px rgb(var(--color-traffic-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/traffic-green.json",
    "https://www.colorsencyclopedia.com/api/colors/traffic-green.json"
  ],
  "url": "https://www.colorsencyclopedia.com/css/colors/traffic-green/",
  "colorUrl": "https://www.colorsencyclopedia.com/colors/traffic-green/",
  "hexUrl": "https://www.colorsencyclopedia.com/hex/008450/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/traffic-green.json"
}