---
title: "Discussion on \"Why you should use RGB values for CSS variables\" | Hashnode"
description: "Discussion on \"Why you should use RGB values for CSS variables\". While I'm a big fan of SASS variables, I tend to use more and more CSS variables since they get very good browser support. One issue I was often facing is: how to get a shade of a given color.\nIn SASS, this is pretty easy since you have tons of color..."
url: "https://hashnode.com/posts/why-you-should-use-rgb-values-for-css-variables/618e4c26e61d1c383da7a750"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why you should use RGB values for CSS variables](https://blog.lekoala.be/why-you-should-use-rgb-values-for-css-variables?utm_source=hashnode&utm_medium=feed)

While I'm a big fan of SASS variables, I tend to use more and more CSS variables since they get very good browser support. One issue I was often facing is: how to get a shade of a given color. In SASS, this is pretty easy since you have tons of color...

Nov 12, 2021 · 2 min read · blog.lekoala.be  
Read the article

-   [#css](https://hashnode.com/tag/css)
-   [#variables](https://hashnode.com/tag/variables)
-   [#color](https://hashnode.com/tag/color)

## Written by

[Thomas Portelange](https://hashnode.com/@lekoala)

@lekoala · Belgium

  
[View profile](https://hashnode.com/@lekoala)

A PHP/JS Web Developer based in Belgium

A Web Developer based in Belgium, specialized in PHP &amp; JS development

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
