{
 "caniuse": [
  "css-relative-colors"
 ],
 "compat_features": [
  "css.types.calc.color_component",
  "css.types.color.color.relative_syntax",
  "css.types.color.hsl.relative_syntax",
  "css.types.color.hwb.relative_syntax",
  "css.types.color.lab.relative_syntax",
  "css.types.color.lch.relative_syntax",
  "css.types.color.oklab.relative_syntax",
  "css.types.color.oklch.relative_syntax",
  "css.types.color.rgb.relative_syntax"
 ],
 "description": "The from keyword for color functions (color(), hsl(), oklch(), etc.) creates a new color based on a given color by modifying the values of the input color. Also known as relative color syntax (RCS).",
 "description_html": "The <code>from</code> keyword for color functions (<code>color()</code>, <code>hsl()</code>, <code>oklch()</code>, etc.) creates a new color based on a given color by modifying the values of the input color. Also known as relative color syntax (RCS).",
 "group": [
  "css"
 ],
 "kind": "feature",
 "name": "Relative colors",
 "spec": [
  "https://drafts.csswg.org/css-color-5/#relative-colors"
 ],
 "status": {
  "baseline": "low",
  "baseline_low_date": "2024-09-16",
  "by_compat_key": {
   "css.types.calc.color_component": {
    "baseline": "low",
    "baseline_low_date": "2024-07-09",
    "support": {
     "chrome": "119",
     "chrome_android": "119",
     "edge": "119",
     "firefox": "128",
     "firefox_android": "128",
     "safari": "16.4",
     "safari_ios": "16.4"
    }
   },
   "css.types.color.color.relative_syntax": {
    "baseline": "low",
    "baseline_low_date": "2024-09-16",
    "support": {
     "chrome": "119",
     "chrome_android": "119",
     "edge": "119",
     "firefox": "128",
     "firefox_android": "128",
     "safari": "18",
     "safari_ios": "18"
    }
   },
   "css.types.color.hsl.relative_syntax": {
    "baseline": "low",
    "baseline_low_date": "2024-09-16",
    "support": {
     "chrome": "125",
     "chrome_android": "125",
     "edge": "125",
     "firefox": "128",
     "firefox_android": "128",
     "safari": "18",
     "safari_ios": "18"
    }
   },
   "css.types.color.hwb.relative_syntax": {
    "baseline": "low",
    "baseline_low_date": "2024-09-16",
    "support": {
     "chrome": "125",
     "chrome_android": "125",
     "edge": "125",
     "firefox": "128",
     "firefox_android": "128",
     "safari": "18",
     "safari_ios": "18"
    }
   },
   "css.types.color.lab.relative_syntax": {
    "baseline": "low",
    "baseline_low_date": "2024-07-09",
    "support": {
     "chrome": "119",
     "chrome_android": "119",
     "edge": "119",
     "firefox": "128",
     "firefox_android": "128",
     "safari": "16.4",
     "safari_ios": "16.4"
    }
   },
   "css.types.color.lch.relative_syntax": {
    "baseline": "low",
    "baseline_low_date": "2024-09-16",
    "support": {
     "chrome": "119",
     "chrome_android": "119",
     "edge": "119",
     "firefox": "128",
     "firefox_android": "128",
     "safari": "18",
     "safari_ios": "18"
    }
   },
   "css.types.color.oklab.relative_syntax": {
    "baseline": "low",
    "baseline_low_date": "2024-07-09",
    "support": {
     "chrome": "122",
     "chrome_android": "122",
     "edge": "122",
     "firefox": "128",
     "firefox_android": "128",
     "safari": "16.4",
     "safari_ios": "16.4"
    }
   },
   "css.types.color.oklch.relative_syntax": {
    "baseline": "low",
    "baseline_low_date": "2024-09-16",
    "support": {
     "chrome": "122",
     "chrome_android": "122",
     "edge": "122",
     "firefox": "128",
     "firefox_android": "128",
     "safari": "18",
     "safari_ios": "18"
    }
   },
   "css.types.color.rgb.relative_syntax": {
    "baseline": "low",
    "baseline_low_date": "2024-09-16",
    "support": {
     "chrome": "122",
     "chrome_android": "122",
     "edge": "122",
     "firefox": "128",
     "firefox_android": "128",
     "safari": "18",
     "safari_ios": "18"
    }
   }
  },
  "support": {
   "chrome": "125",
   "chrome_android": "125",
   "edge": "125",
   "firefox": "128",
   "firefox_android": "128",
   "safari": "18",
   "safari_ios": "18"
  }
 },
 "id": "relative-color",
 "groups": [
  "css"
 ],
 "specs": [
  {
   "url": "https://drafts.csswg.org/css-color-5/#relative-colors",
   "seriesComposition": "delta",
   "shortname": "css-color-5",
   "series": {
    "shortname": "css-color",
    "currentSpecification": "css-color-4",
    "title": "CSS Color",
    "shortTitle": "CSS Color",
    "releaseUrl": "https://www.w3.org/TR/css-color/",
    "nightlyUrl": "https://drafts.csswg.org/css-color/"
   },
   "seriesVersion": "5",
   "seriesPrevious": "css-color-4",
   "seriesNext": "css-color-6",
   "organization": "W3C",
   "groups": [
    {
     "name": "Cascading Style Sheets (CSS) Working Group",
     "url": "https://www.w3.org/groups/wg/css/"
    }
   ],
   "release": {
    "url": "https://www.w3.org/TR/css-color-5/",
    "status": "Working Draft",
    "filename": "Overview.html"
   },
   "nightly": {
    "url": "https://drafts.csswg.org/css-color-5/",
    "status": "Editor's Draft",
    "alternateUrls": [
     "https://w3c.github.io/csswg-drafts/css-color-5/"
    ],
    "repository": "https://github.com/w3c/csswg-drafts",
    "sourcePath": "css-color-5/Overview.bs",
    "filename": "index.html"
   },
   "title": "CSS Color Module Level 5",
   "source": "w3c",
   "shortTitle": "CSS Color 5",
   "categories": [
    "browser"
   ],
   "standing": "good",
   "tests": {
    "repository": "https://github.com/web-platform-tests/wpt",
    "testPaths": [
     "css/css-color"
    ]
   },
   "fragment": "relative-colors"
  }
 ],
 "mdnUrls": [
  {
   "slug": "Web/CSS/Guides/Colors/Using_relative_colors",
   "title": "Using relative colors",
   "anchor": null,
   "url": "https://developer.mozilla.org/docs/Web/CSS/Guides/Colors/Using_relative_colors"
  }
 ],
 "standardPositions": [
  {
   "vendor": "mozilla",
   "url": "https://github.com/mozilla/standards-positions/issues/841",
   "position": "positive",
   "concerns": []
  }
 ],
 "hasNegativeStandardPosition": false,
 "stateOfSurveys": [
  {
   "name": "State of CSS 2026",
   "url": "https://2026.stateofcss.com/en-US/usage/#favorite_new_features",
   "question": "usage",
   "subQuestion": "favorite_new_features",
   "path": "dataAPI.surveys.state_of_css.css2026.usage.favorite_new_features.freeform.allEditions.0.buckets.8.entity"
  },
  {
   "name": "State of CSS 2026",
   "url": "https://2026.stateofcss.com/en-US/colors/#colors_pain_points_features",
   "question": "colors",
   "subQuestion": "colors_pain_points_features",
   "path": "dataAPI.surveys.state_of_css.css2026.colors.colors_pain_points_features.freeform.allEditions.0.buckets.2.entity"
  },
  {
   "name": "State of CSS 2026",
   "url": "https://2026.stateofcss.com/en-US/colors/#colors_pain_points",
   "question": "colors",
   "subQuestion": "colors_pain_points",
   "path": "dataAPI.surveys.state_of_css.css2026.colors.colors_pain_points.freeform.allEditions.0.buckets.9.nestedBuckets.0.entity"
  },
  {
   "name": "State of CSS 2026",
   "url": "https://2026.stateofcss.com/en-US/_all_features/#all_features",
   "question": "_all_features",
   "subQuestion": "all_features",
   "path": "dataAPI.surveys.state_of_css.css2026._all_features.all_features.19.entity"
  },
  {
   "name": "State of CSS 2025",
   "url": "https://2025.stateofcss.com/en-US/usage/#favorite_new_features",
   "question": "usage",
   "subQuestion": "favorite_new_features",
   "path": "dataAPI.surveys.state_of_css.css2025.usage.favorite_new_features.freeform.allEditions.0.buckets.13.entity"
  },
  {
   "name": "State of CSS 2025",
   "url": "https://2025.stateofcss.com/en-US/usage/#css_interoperability_features",
   "question": "usage",
   "subQuestion": "css_interoperability_features",
   "path": "dataAPI.surveys.state_of_css.css2025.usage.css_interoperability_features.freeform.allEditions.0.buckets.18.entity"
  },
  {
   "name": "State of CSS 2025",
   "url": "https://2025.stateofcss.com/en-US/features/#all_features",
   "question": "features",
   "subQuestion": "all_features",
   "path": "dataAPI.surveys.state_of_css.css2025.features.all_features.21.entity"
  },
  {
   "name": "State of CSS 2025",
   "url": "https://2025.stateofcss.com/en-US/colors/#colors_pain_points",
   "question": "colors",
   "subQuestion": "colors_pain_points",
   "path": "dataAPI.surveys.state_of_css.css2025.colors.colors_pain_points.freeform.allEditions.0.buckets.9.entity"
  },
  {
   "name": "State of CSS 2024",
   "url": "https://2024.stateofcss.com/en-US/usage/#favorite_new_features",
   "question": "usage",
   "subQuestion": "favorite_new_features",
   "path": "dataAPI.surveys.state_of_css.css2024.usage.favorite_new_features.freeform.currentEdition.buckets.13.entity"
  },
  {
   "name": "State of CSS 2024",
   "url": "https://2024.stateofcss.com/en-US/usage/#css_interoperability_features",
   "question": "usage",
   "subQuestion": "css_interoperability_features",
   "path": "dataAPI.surveys.state_of_css.css2024.usage.css_interoperability_features.freeform.currentEdition.buckets.18.entity"
  },
  {
   "name": "State of CSS 2024",
   "url": "https://2024.stateofcss.com/en-US/features/#all_features",
   "question": "features",
   "subQuestion": "all_features",
   "path": "dataAPI.surveys.state_of_css.css2024.features.all_features.20.entity"
  }
 ],
 "chromeUseCounters": {
  "percentageOfPageLoad": 0.14116081,
  "url": "https://chromestatus.com/metrics/webfeature/timeline/popularity/53"
 },
 "interop": [
  {
   "year": 2024,
   "label": "interop-2024-relative-color",
   "url": "https://wpt.fyi/interop-2024?feature=interop-2024-relative-color"
  }
 ],
 "wpt": {
  "url": "https://wpt.fyi/results?q=feature:relative-color"
 },
 "developerSignals": null,
 "bugs": {
  "chrome": [
   "https://issues.chromium.org/issues/325309578",
   "https://crbug.com/1475009"
  ],
  "firefox": [
   "https://bugzil.la/1900251"
  ]
 },
 "useCases": null,
 "baselineLowDateAsObject": "2024-09-16T00:00:00.000Z",
 "baselineHighDateAsObject": null,
 "expectedBaselineHighDate": "2027-03-16"
}