Color models in Figma design
Before you start
Who can use this feature
Colors are available on any team or plan
Anyone with can edit access to the file can use the color picker and select a color model.
There are lots of terms used to describe color. In this article, we use the term color model to describe the different ways your can represent a color.
Figma allows you to see colors across five color models: Hex, HSB, HSL, CSS, and RGB.
Switching between color models only affects how Figma describes colors; It doesn't affect how Figma renders them.
Color profiles affect how Figma renders colors. You can choose between sRGB or Display P3 as your default color profile, as a design file's color profile, or for exporting assets. Learn about color profiles and color management →
Color models
By default, Figma represents color values using the Hex model. You can also view color notation for other models in the color picker.
Hex
Is the default color model in Figma and refers to the Hexadecimal color. This is an alphanumeric shorthand representative of the RGB values.
Creators in web, or digital design refer to the notation for this color model as hex codes.
RGB
RGB or Red Green Blue is the most commonly used color model.
Every color that is rendered on a monitor or screen will be made up of varying amounts of Red Green and Blue.
You may have also seen RGBa referenced in other resources. The a in RGBa stands for alpha, which represents the opacity of the color. This represents opacity as a value between 0 and 100%.
HSB
Hue Saturation Brightness is an alternative representation of the RGB model.
This is based around how the human eye perceives color, versus how a display would (in RGB).
All color models will have an additional Alpha channel (or value), which represents the opacity of the color. This represents opacity as a value between 0 and 100%.
HSL
Hue Saturation Luminance is another color model based around how the human eye perceives color.
Like HSB, it is an alternative representation of the RGB model. The main difference between HSB and HSL is how saturation and lightness are treated.
CSS
The CSS color model allows you to view or enter RGBa values using CSS syntax. This includes the format, followed by the values for each color: rgba(47, 128, 237, 1)
Want to communicate colors to a developer or engineer? The CSS model lets you copy CSS-friendly notation for the selected color. This lets you paste this directly into a stylesheet, formatting included. Learn more about developer handoff.
View color models in the color picker
View and update colors across different color models in the color picker.
- Click on the Fill or Stroke in the right sidebar to open the color picker.
- Below the Hue and Opacity sliders you can see the current color model and the corresponding values.
- Use the dropdown to switch color models. Choose between Hex, HSB, HSL, CSS and RGB:
- Figma will show the values in the notation you selected.