CSS utility

Porcelain CSS Utilities

Porcelain CSS utilities provide reusable variables and utility classes for #F2F3F4. 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 Porcelain #F2F3F4

Utility Classes

Background.bg-porcelain
Text.text-porcelain
Border.border-porcelain
Surface.surface-porcelain

CSS Snippet

:root {
  --color-porcelain: #F2F3F4;
  --color-porcelain-rgb: 242 243 244;
  --color-porcelain-contrast: #111827;
}

.bg-porcelain { background-color: var(--color-porcelain); }
.text-porcelain { color: var(--color-porcelain); }
.border-porcelain { border-color: var(--color-porcelain); }
.surface-porcelain {
  background-color: var(--color-porcelain);
  color: var(--color-porcelain-contrast);
  border: 1px solid color-mix(in srgb, var(--color-porcelain), #111827 18%);
}
.shadow-porcelain { box-shadow: 0 18px 40px rgb(var(--color-porcelain-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 contrast18.9:1
White contrast1.11:1
RGB token242 243 244

Machine-readable data

Machine-Readable Porcelain CSS Utilities (JSON)

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

AI-Ready Dataset v1.0.0
Luminance0.8951
Black text18.9:1AA Pass
White text1.11: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-porcelain: #F2F3F4;",
  "rgb": "--color-porcelain-rgb: 242 243 244;",
  "contrast": "--color-porcelain-contrast: #111827;"
}
Utility classes
{
  "background": ".bg-porcelain",
  "text": ".text-porcelain",
  "border": ".border-porcelain",
  "surface": ".surface-porcelain",
  "shadow": ".shadow-porcelain"
}
Accessibility
{
  "bestTextColor": "#111827",
  "contrast": {
    "black": 18.9,
    "white": 1.11
  },
  "wcag": {
    "AA": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ],
    "AAA": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ]
  }
}
Implementation
{
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "cssSnippet": ":root {\n  --color-porcelain: #F2F3F4;\n  --color-porcelain-rgb: 242 243 244;\n  --color-porcelain-contrast: #111827;\n}\n\n.bg-porcelain { background-color: var(--color-porcelain); }\n.text-porcelain { color: var(--color-porcelain); }\n.border-porcelain { border-color: var(--color-porcelain); }\n.surface-porcelain {\n  background-color: var(--color-porcelain);\n  color: var(--color-porcelain-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-porcelain), #111827 18%);\n}\n.shadow-porcelain { box-shadow: 0 18px 40px rgb(var(--color-porcelain-rgb) / 28%); }"
}
Related endpoints
[
  "https://www.colorsencyclopedia.com/api/css/colors/porcelain.json",
  "https://www.colorsencyclopedia.com/api/colors/porcelain.json"
]
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "porcelain",
  "name": "Porcelain",
  "hex": "#F2F3F4",
  "rgb": [
    242,
    243,
    244
  ],
  "hsl": [
    210,
    8,
    95
  ],
  "cmyk": [
    1,
    0,
    0,
    4
  ],
  "luminance": 0.8951,
  "contrast": {
    "black": 18.9,
    "white": 1.11
  },
  "wcag": {
    "AA": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ],
    "AAA": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ]
  },
  "family": "blue",
  "temperature": "cool",
  "tone": [
    "light"
  ],
  "bestTextColor": "#111827",
  "cssVariables": {
    "color": "--color-porcelain: #F2F3F4;",
    "rgb": "--color-porcelain-rgb: 242 243 244;",
    "contrast": "--color-porcelain-contrast: #111827;"
  },
  "utilityClasses": {
    "background": ".bg-porcelain",
    "text": ".text-porcelain",
    "border": ".border-porcelain",
    "surface": ".surface-porcelain",
    "shadow": ".shadow-porcelain"
  },
  "cssSnippet": ":root {\n  --color-porcelain: #F2F3F4;\n  --color-porcelain-rgb: 242 243 244;\n  --color-porcelain-contrast: #111827;\n}\n\n.bg-porcelain { background-color: var(--color-porcelain); }\n.text-porcelain { color: var(--color-porcelain); }\n.border-porcelain { border-color: var(--color-porcelain); }\n.surface-porcelain {\n  background-color: var(--color-porcelain);\n  color: var(--color-porcelain-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-porcelain), #111827 18%);\n}\n.shadow-porcelain { box-shadow: 0 18px 40px rgb(var(--color-porcelain-rgb) / 28%); }",
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "relatedEndpoints": [
    "https://www.colorsencyclopedia.com/api/css/colors/porcelain.json",
    "https://www.colorsencyclopedia.com/api/colors/porcelain.json"
  ],
  "url": "https://www.colorsencyclopedia.com/css/colors/porcelain/",
  "colorUrl": "https://www.colorsencyclopedia.com/colors/porcelain/",
  "hexUrl": "https://www.colorsencyclopedia.com/hex/f2f3f4/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/porcelain.json"
}