CSS utility

Pine Green CSS Utilities

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

Utility Classes

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

CSS Snippet

:root {
  --color-pine-green: #01796F;
  --color-pine-green-rgb: 1 121 111;
  --color-pine-green-contrast: #FFFFFF;
}

.bg-pine-green { background-color: var(--color-pine-green); }
.text-pine-green { color: var(--color-pine-green); }
.border-pine-green { border-color: var(--color-pine-green); }
.surface-pine-green {
  background-color: var(--color-pine-green);
  color: var(--color-pine-green-contrast);
  border: 1px solid color-mix(in srgb, var(--color-pine-green), #111827 18%);
}
.shadow-pine-green { box-shadow: 0 18px 40px rgb(var(--color-pine-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 contrast3.97:1
White contrast5.3:1
RGB token1 121 111

Machine-readable data

Machine-Readable Pine Green CSS Utilities (JSON)

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

AI-Ready Dataset v1.0.0
Luminance0.1483
Black text3.97:1AA Fail
White text5.3: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-pine-green: #01796F;",
  "rgb": "--color-pine-green-rgb: 1 121 111;",
  "contrast": "--color-pine-green-contrast: #FFFFFF;"
}
Utility classes
{
  "background": ".bg-pine-green",
  "text": ".text-pine-green",
  "border": ".border-pine-green",
  "surface": ".surface-pine-green",
  "shadow": ".shadow-pine-green"
}
Accessibility
{
  "bestTextColor": "#FFFFFF",
  "contrast": {
    "black": 3.97,
    "white": 5.3
  },
  "wcag": {
    "AA": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "AAA": []
  }
}
Implementation
{
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "cssSnippet": ":root {\n  --color-pine-green: #01796F;\n  --color-pine-green-rgb: 1 121 111;\n  --color-pine-green-contrast: #FFFFFF;\n}\n\n.bg-pine-green { background-color: var(--color-pine-green); }\n.text-pine-green { color: var(--color-pine-green); }\n.border-pine-green { border-color: var(--color-pine-green); }\n.surface-pine-green {\n  background-color: var(--color-pine-green);\n  color: var(--color-pine-green-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-pine-green), #111827 18%);\n}\n.shadow-pine-green { box-shadow: 0 18px 40px rgb(var(--color-pine-green-rgb) / 28%); }"
}
Related endpoints
[
  "https://www.colorsencyclopedia.com/api/css/colors/pine-green.json",
  "https://www.colorsencyclopedia.com/api/colors/pine-green.json"
]
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "pine-green",
  "name": "Pine Green",
  "hex": "#01796F",
  "rgb": [
    1,
    121,
    111
  ],
  "hsl": [
    175,
    98,
    24
  ],
  "cmyk": [
    99,
    0,
    8,
    53
  ],
  "luminance": 0.1483,
  "contrast": {
    "black": 3.97,
    "white": 5.3
  },
  "wcag": {
    "AA": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "AAA": []
  },
  "family": "cyan",
  "temperature": "cool",
  "tone": [
    "dark"
  ],
  "bestTextColor": "#FFFFFF",
  "cssVariables": {
    "color": "--color-pine-green: #01796F;",
    "rgb": "--color-pine-green-rgb: 1 121 111;",
    "contrast": "--color-pine-green-contrast: #FFFFFF;"
  },
  "utilityClasses": {
    "background": ".bg-pine-green",
    "text": ".text-pine-green",
    "border": ".border-pine-green",
    "surface": ".surface-pine-green",
    "shadow": ".shadow-pine-green"
  },
  "cssSnippet": ":root {\n  --color-pine-green: #01796F;\n  --color-pine-green-rgb: 1 121 111;\n  --color-pine-green-contrast: #FFFFFF;\n}\n\n.bg-pine-green { background-color: var(--color-pine-green); }\n.text-pine-green { color: var(--color-pine-green); }\n.border-pine-green { border-color: var(--color-pine-green); }\n.surface-pine-green {\n  background-color: var(--color-pine-green);\n  color: var(--color-pine-green-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-pine-green), #111827 18%);\n}\n.shadow-pine-green { box-shadow: 0 18px 40px rgb(var(--color-pine-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/pine-green.json",
    "https://www.colorsencyclopedia.com/api/colors/pine-green.json"
  ],
  "url": "https://www.colorsencyclopedia.com/css/colors/pine-green/",
  "colorUrl": "https://www.colorsencyclopedia.com/colors/pine-green/",
  "hexUrl": "https://www.colorsencyclopedia.com/hex/01796f/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/pine-green.json"
}