ColorDetector

Bootstrap Color Generator

Generate Bootstrap theme color variables from a base color.

Ad

About the Bootstrap Color Generator

Generate Bootstrap theme color variables from a base color. Every value is computed locally with vanilla JavaScript — there is no server round-trip, no sign-up and no limit on how many times you use it.

01

How to use

Step 1

Choose a color

Enter a HEX value or use the picker.

Step 2

Generate variables

Bootstrap-style color variables are produced.

Step 3

Review the snippet

See Sass and CSS custom property versions.

Step 4

Copy and theme

Paste into your Bootstrap override file.

02

Benefits

Theme Bootstrap fast

Get the variables needed to recolor components.

Sass and CSS output

Use whichever your build pipeline expects.

No manual math

The RGB channels are pre-calculated for you.

03

Features & supported formats

Features

  • Sass variable output
  • CSS custom property output
  • RGB channel triplet
  • Copy-ready snippet
  • Live preview

Supported formats

HEXRGBSass / CSS variables
04

Frequently asked questions

Where do I paste these?

Into your custom Sass map or your :root overrides when theming Bootstrap.

Why does Bootstrap need an RGB triplet?

Bootstrap uses the --bs-primary-rgb channels to build translucent backgrounds and borders.

Will this restyle every component?

Setting the primary variables updates the components that reference them, such as buttons and links.

Do I need to recompile Sass?

If you use the Sass variables, yes; the CSS custom properties work without a build step.

Can I theme more than the primary color?

Yes. Generate each theme color you need and combine the variables in one override file.