Bootstrap 5 Colors Reference

Every theme color, gray scale, and 100–900 tint with HEX, SCSS, and CSS variables you can copy in one click.

Click any swatch to copy its HEX, SCSS variable, or CSS custom property, or use the search to jump straight to a specific Bootstrap token like primary, danger, or blue-500.

🎨 Theme colors

primary #0D6EFD
secondary #6C757D
success #198754
info #0DCAF0
warning #FFC107
danger #DC3545
light #F8F9FA
dark #212529

πŸ“Š Color scales

blue

100 #CFE2FF
200 #9EC5FE
300 #6EA8FE
400 #3D8BFD
500 #0D6EFD
600 #0A58CA
700 #084298
800 #052C65
900 #031633

indigo

100 #E0CFFC
200 #C29FFA
300 #A370F7
400 #8540F5
500 #6610F2
600 #520DC2
700 #3D0A91
800 #290661
900 #140330

purple

100 #E2D9F3
200 #C5B3E6
300 #A98EDA
400 #8C68CD
500 #6F42C1
600 #59359A
700 #432874
800 #2C1A4D
900 #160D27

pink

100 #F7D6E6
200 #EFADCE
300 #E685B5
400 #DE5C9D
500 #D63384
600 #AB296A
700 #801F4F
800 #561435
900 #2B0A1A

red

100 #F8D7DA
200 #F1AEB5
300 #EA868F
400 #E35D6A
500 #DC3545
600 #B02A37
700 #842029
800 #58151C
900 #2C0B0E

orange

100 #FFE5D0
200 #FECBA1
300 #FEB272
400 #FD9843
500 #FD7E14
600 #CA6510
700 #984C0C
800 #653208
900 #331904

yellow

100 #FFF3CD
200 #FFE69C
300 #FFDA6A
400 #FFCD39
500 #FFC107
600 #CC9A06
700 #997404
800 #664D03
900 #332701

green

100 #D1E7DD
200 #A3CFBB
300 #75B798
400 #479F76
500 #198754
600 #146C43
700 #0F5132
800 #0A3622
900 #051B11

teal

100 #D2F4EA
200 #A6E9D5
300 #79DFC1
400 #4DD4AC
500 #20C997
600 #1AA179
700 #13795B
800 #0D503C
900 #06281E

cyan

100 #CFF4FC
200 #9EEAF9
300 #6EDFF6
400 #3DD5F3
500 #0DCAF0
600 #0AA2C0
700 #087990
800 #055160
900 #032830

gray

100 #F8F9FA
200 #E9ECEF
300 #DEE2E6
400 #CED4DA
500 #ADB5BD
600 #6C757D
700 #495057
800 #343A40
900 #212529

The complete Bootstrap 5 colors reference

This page lists every value in the Bootstrap 5 colors system in one searchable, copyable grid — theme tokens, the gray scale, and the full 100–900 tint and shade range for blue, indigo, purple, pink, red, orange, yellow, green, teal, and cyan. Each swatch ships with its HEX code, SCSS variable, and CSS custom property so you can paste the right token into any stylesheet, component, or design file without hunting through the docs.

Theme colors and what they map to

Bootstrap exposes a small theme palette built on top of its generic color variables. The defaults are $primary mapped to $blue (#0d6efd), $secondary to $gray-600, $success to $green (#198754), $info to $cyan (#0dcaf0), $warning to $yellow (#ffc107), $danger to $red (#dc3545), $light to $gray-100, and $dark to $gray-900. All these colors are available as a Sass map, $theme-colors, which drives buttons, alerts, badges, and the rest of the framework's component modifiers.

Tints, shades, and the 100–900 scale

Sass cannot programmatically generate variables, so Bootstrap manually creates variables for every tint and shade — specifying the midpoint value (e.g., $blue-500) and using custom color functions to tint or shade via Sass's mix() function. The result is a predictable ramp from -100 (lightest) to -900 (darkest) for every base hue, ideal for hover states, subtle backgrounds, and dark-mode surfaces. If you need a custom hue with the same structure, build one with the Tailwind Scale Generator and drop it into your $theme-colors map.

v5.3 color modes and emphasis tokens

Bootstrap's color palette expanded in v5.3.0 with new variables for secondary and tertiary text and background colors, plus {color}-bg-subtle, {color}-border-subtle, and {color}-text-emphasis tokens — available through Sass and CSS variables to make it easier to customize across light and dark color modes. Color modes can be toggled globally on the html element, or on specific components and elements, thanks to the data-bs-theme attribute.

Use the right token in code

Whether you compile your own Sass or consume the precompiled CSS, copy what fits your build:

  • SCSS variable — for source builds: $primary, $blue-500, $gray-200.
  • CSS custom property — for runtime theming: var(--bs-primary), var(--bs-success-bg-subtle).
  • HEX — for design tools, exports, or non-Bootstrap projects.

Before shipping a custom theme, run pairs through the Contrast Checker to confirm WCAG AA/AAA compliance, and use the Color Converter if you need RGB, HSL, or OKLCH equivalents. Comparing frameworks? Cross-reference the Tailwind CSS color palette side by side.

For deeper customization patterns, see the official Bootstrap color docs, the Sass customization guide, and the W3C WCAG 2.2 specification for contrast targets.

Frequently Asked Questions