Tools39

A PRACTICAL COLOR GUIDE

How to explore Bootstrap 6 OKLCHand Bootstrap 5.3 HEX colors

Inspect every 025–975 Bootstrap shade with live HEX codes, WCAG contrast, and one-click token export.

Browse all 208 Bootstrap 6 OKLCH shades and 99 Bootstrap 5.3 colors with resolved HEX codes, WCAG contrast checks, and custom SCSS or CSS scale export.

Follow the guide
A REAL STUDIO EXAMPLE
Before Unresolved CSS color-mix() Formula: Docs omit computed #HEX and WCAG contrast ratios
After 13-Stop Bootstrap Scale + Inspector: Every 025–975 HEX code, CSS variable, and WCAG ratio ready
Raw oklch() base formula → Full 13-stop 025–975 HEX ribbon & WCAG contrast inspector
QUICK VIDEO TUTORIAL How to explore Bootstrap 6 OKLCH shades and Bootstrap 5.3 HEX colors Inspect every 025–975 Bootstrap shade with live HEX codes, WCAG contrast, and one-click token export. Watch the video

How to explore Bootstrap 6 OKLCH shades and Bootstrap 5.3 HEX colors

Open Bootstrap Colors in your browser to browse all 208 Bootstrap 6 OKLCH shades (025–975) and 99 classic Bootstrap 5.3 colors (100–900), inspect WCAG contrast, or build a custom 13-shade scale. Everything runs locally on your device and connects directly with your shared Active Palette.

01

Switch between Bootstrap 6 (16 × 13), Bootstrap 5.3, or Custom Scale

By default, the matrix displays all 16 perceptual OKLCH color families introduced in Bootstrap 6—including violet, amber, lime, brown, and pewter—across 13 stops from airy 025 washes down to deep 975 surfaces.

Working on an existing Bootstrap 5 codebase? Click Bootstrap 5.3 (11 × 9) to view the classic sRGB 100–900 Sass tint-color() and shade-color() hex values, or select Custom Scale to generate a matching 13-stop ramp from any brand #HEX.

Switch cell syntax anytime: Use the top-right syntax dropdown to display HEX, OKLCH, RGB, --bs-* CSS variables, or $*-* Sass tokens directly inside every swatch.

02

Click any color tile to inspect contrast and copy tokens

Clicking any swatch opens the interactive Color Inspector popup—letting you step smoothly across neighboring shades (‹ 400 · 500 · 600 ›) while comparing WCAG 2.1 contrast ratios against pure white and black.

Click any token card inside the inspector—HEX, CSS Variable, SCSS Variable, OKLCH, RGB, or HSL—to copy it immediately, or send the shade into your shared Active Palette.

Subtle Alerts & Borders

Use 025–050 for calm light-mode alert fills and 200 for subtle borders that pair cleanly with 800 ink.

Base Brand & Hover Fills

Stop 500 holds each hue's unmixed base color, while 600 provides a consistent 16%-shaded hover state.

Emphasis Ink & Dark Surfaces

Pair 800 text over 050 backgrounds for 10:1+ AAA legibility, and use 900–975 for dark-mode surfaces.

03

Export CSS :root variables, Bootstrap SCSS, or W3C JSON

Click Export CSS / SCSS in the toolbar (or click CSS Row above any single color strip) to copy resolved :root hex custom properties, native color-mix(in oklch) formulas, Sass _colors.scss maps, Tailwind @theme tokens, or JSON.

:root {
  --bs-indigo-050: #F4F0FF;
  --bs-indigo-200: #D2BFFF;
  --bs-indigo-500: #7741FF; /* Base oklch(56% 0.26 288) */
  --bs-indigo-600: #6030DF;
  --bs-indigo-800: #371688;
  --bs-indigo-950: #1A0847;
}
A FEW USEFUL DETAILS

Common questions

Why did Bootstrap 6 move from sRGB Sass mixing to OKLCH?

In sRGB, mixing white or black shifts perceived brightness unevenly across yellow, blue, and purple. Mixing in perceptual OKLCH keeps every row visually balanced from 025 to 975.

How are the resolved HEX codes calculated from color-mix(in oklch)?

Because pure white and black have zero chroma (powerless hue in CSS Color 5), mixing preserves the base hue angle while scaling lightness and chroma linearly before gamut-mapping cleanly to sRGB.

Can I preview how a row looks on real Bootstrap alerts and buttons?

Yes—click Preview in UI on any row (or pick a hue dot in the Live Bootstrap Theme Preview below the matrix) and toggle between Light and Dark modes.

YOUR TURN

Try Bootstrap Colors

Explore all 208 Bootstrap 6 OKLCH shades, classic v5.3 HEX codes, and custom brand ramps.

Open Bootstrap Colors

Image detail

Language38

EnglishالعربيةFrançaisItalianoDeutschEspañolPortuguêsNederlandsРусскийTürkçe日本語中文हिन्दीBahasa IndonesiaBahasa Melayu한국어Tiếng ViệtไทยPolskiSvenskaУкраїнськаNorskবাংলাΕλληνικάفارسیاردوČeštinaDanskMagyarRomânăSuomiБългарскиFilipinoქართულიSlovenčinaAzərbaycancaעבריתSlovenščina