---
title: Colors
status: New release
status_issue: https://github.com/github/design-systems/issues/97
---
Use color utilities to apply color to the background of elements, text, and borders.
* [Background colors](#background-colors)
* [Text colors](#text-colors)
* [Link colors](#link-colors)
* [Border colors](#border-colors)
## Background colors
Background colors are most commonly used for filling large blocks of content or areas with a color. When selecting a background color, make sure the foreground color contrast passes a minimum WCAG accessibility rating of [level AA](https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html). Meeting these standards ensures that content is accessible by everyone, regardless of disability or user device. You can [check your color combination with this demo site](http://jxnblk.com/colorable/demos/text/). For more information, read our [accessibility standards](/primer/principles/accessibility).
### Gray
.bg-gray
#f5f5f5, $bg-gray
.bg-gray-dark
#333, $bg-gray-dark
.bg-gray-light
#fafafa, $bg-gray-light
### Blue
.bg-blue
#4078c0, $bg-blue
.bg-blue-light
#f2f8fa, $bg-blue-light
### Yellow
.bg-yellow
#ffd36b, $bg-yellow
.bg-yellow-light
#fff9ea, $bg-yellow-light
### Red
.bg-red-light
#fcdede, $bg-red-light
### Green
.bg-green
#6cc644, $bg-green
.bg-green-light
#eaffea, $bg-green-light
### Purple
.bg-purple
#6e5494, $bg-purple
.bg-purple-light
#f5f0ff, $bg-purple-light
## Text colors
Use text color utilities to set text or [octicons](/styleguide/css/styles/core/components/octicons) to a specific color. Color contrast must pass a minimum WCAG accessibility rating of [level AA](https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html). This ensures that viewers who cannot see the full color spectrum are able to read the text. To customize outside of the suggested combinations below, we recommend using this [color contrast testing tool](http://jxnblk.com/colorable/demos/text/). For more information, read our [accessibility standards](/primer/principles/accessibility).
These are our most common text with background color combinations. They don't all pass accessibility standards currently, but will be updated in the future. **Any of the combinations with a warning icon must be used with caution**.
### Text on white background
```html
.text-blue on white
.text-gray-dark on white
.text-gray on white
.text-red on white
.text-orange on white
<%= octicon("alert") %>
.text-orange-light on white
<%= octicon("alert") %>
.text-green on white
.text-purple on white
```
### Text on colored backgrounds
```html
.text-white on .bg-blue
.text-gray-dark on .bg-blue-light
.text-white on .bg-red
.text-red on .bg-red-light
.text-gray-dark on .bg-green-light
.text-gray-dark on .bg-yellow
.text-gray-dark on .bg-yellow-light
.text-white on .bg-purple
.text-white on .bg-gray-dark
.text-gray-dark on .bg-gray
```
## Link colors
Base link styles turn links blue and apply an underline on hover. You can override the base link styles with text color utilities and the following link utilities. **Bear in mind that link styles are easier for more people to see and interact with when the changes in styles do not rely on color alone.**
Use `link-gray` to turn the link color to `$text-gray` and remain hover on blue.
```html
link-gray
```
Use `link-gray-dark` to turn the link color to `$text-gray-dark` and remain hover on blue.
```html
link-gray-dark
```
Use `.muted-link` to turn the link light gray in color, and blue on hover or focus with no underline.
```html
muted-link
```
Use `link-hover-blue` to make any text color used with links to turn blue on hover. This is useful when you want only part of a link to turn blue on hover.
```html
A link with only part of it is blue on hover.
```
## Border colors
Border colors are documented on the [border utilities page](../..//utilities/borders#border-width-style-and-color-utilities).