CSS utility

Bottle Green CSS Utilities

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

Utility Classes

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

CSS Snippet

:root {
  --color-bottle-green: #006A4E;
  --color-bottle-green-rgb: 0 106 78;
  --color-bottle-green-contrast: #FFFFFF;
}

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

Machine-readable data

Machine-Readable Bottle Green CSS Utilities (JSON)

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

AI-Ready Dataset v1.0.0
Luminance0.1086
Black text3.17:1AA Fail
White text6.62: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-bottle-green: #006A4E;",
  "rgb": "--color-bottle-green-rgb: 0 106 78;",
  "contrast": "--color-bottle-green-contrast: #FFFFFF;"
}
Utility classes
{
  "background": ".bg-bottle-green",
  "text": ".text-bottle-green",
  "border": ".border-bottle-green",
  "surface": ".surface-bottle-green",
  "shadow": ".shadow-bottle-green"
}
Accessibility
{
  "bestTextColor": "#FFFFFF",
  "contrast": {
    "black": 3.17,
    "white": 6.62
  },
  "wcag": {
    "AA": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "AAA": []
  }
}
Implementation
{
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "cssSnippet": ":root {\n  --color-bottle-green: #006A4E;\n  --color-bottle-green-rgb: 0 106 78;\n  --color-bottle-green-contrast: #FFFFFF;\n}\n\n.bg-bottle-green { background-color: var(--color-bottle-green); }\n.text-bottle-green { color: var(--color-bottle-green); }\n.border-bottle-green { border-color: var(--color-bottle-green); }\n.surface-bottle-green {\n  background-color: var(--color-bottle-green);\n  color: var(--color-bottle-green-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-bottle-green), #111827 18%);\n}\n.shadow-bottle-green { box-shadow: 0 18px 40px rgb(var(--color-bottle-green-rgb) / 28%); }"
}
Related endpoints
[
  "https://www.colorsencyclopedia.com/api/css/colors/bottle-green.json",
  "https://www.colorsencyclopedia.com/api/colors/bottle-green.json"
]
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "bottle-green",
  "name": "Bottle Green",
  "hex": "#006A4E",
  "rgb": [
    0,
    106,
    78
  ],
  "hsl": [
    164,
    100,
    21
  ],
  "cmyk": [
    100,
    0,
    26,
    58
  ],
  "luminance": 0.1086,
  "contrast": {
    "black": 3.17,
    "white": 6.62
  },
  "wcag": {
    "AA": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "AAA": []
  },
  "family": "green",
  "temperature": "cool",
  "tone": [
    "dark",
    "jewel-tone"
  ],
  "bestTextColor": "#FFFFFF",
  "cssVariables": {
    "color": "--color-bottle-green: #006A4E;",
    "rgb": "--color-bottle-green-rgb: 0 106 78;",
    "contrast": "--color-bottle-green-contrast: #FFFFFF;"
  },
  "utilityClasses": {
    "background": ".bg-bottle-green",
    "text": ".text-bottle-green",
    "border": ".border-bottle-green",
    "surface": ".surface-bottle-green",
    "shadow": ".shadow-bottle-green"
  },
  "cssSnippet": ":root {\n  --color-bottle-green: #006A4E;\n  --color-bottle-green-rgb: 0 106 78;\n  --color-bottle-green-contrast: #FFFFFF;\n}\n\n.bg-bottle-green { background-color: var(--color-bottle-green); }\n.text-bottle-green { color: var(--color-bottle-green); }\n.border-bottle-green { border-color: var(--color-bottle-green); }\n.surface-bottle-green {\n  background-color: var(--color-bottle-green);\n  color: var(--color-bottle-green-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-bottle-green), #111827 18%);\n}\n.shadow-bottle-green { box-shadow: 0 18px 40px rgb(var(--color-bottle-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/bottle-green.json",
    "https://www.colorsencyclopedia.com/api/colors/bottle-green.json"
  ],
  "url": "https://www.colorsencyclopedia.com/css/colors/bottle-green/",
  "colorUrl": "https://www.colorsencyclopedia.com/colors/bottle-green/",
  "hexUrl": "https://www.colorsencyclopedia.com/hex/006a4e/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/bottle-green.json"
}