Color Converter
HEX・RGB・HSL・OKLCHを変換。
ベース色からTint・Shade・ToneスケールとTailwind風50–950ランプを生成。
Step 500 is the closest to your input colour (nearest lightness).
:root {
--color-50: #f2f6fc;
--color-100: #e5edfa;
--color-200: #c1d5f6;
--color-300: #95b9f3;
--color-400: #5e96f3;
--color-500: #2473f5;
--color-600: #1161e3;
--color-700: #1452b8;
--color-800: #154593;
--color-900: #143770;
--color-950: #0f2343;
}Tints, shades, and tones are simple linear mixes in sRGB. The Tailwind ramp preserves hue while matching a lightness curve, with saturation slightly reduced at the extremes.
Tints mix white into the base to lighten it, shades mix black to darken it, and tones mix in mid-gray (#808080) to desaturate it. All three are simple linear blends of sRGB channels.
Treat your input color as a brand color, and the tool generates 11 steps from 50 (lightest) to 950 (darkest) around it. The highlighted step is the one closest in lightness to your input, giving you a sense of where it fits in an existing Tailwind numbering. The Tailwind tab's output pastes directly into `theme.extend.colors`.
Perceptually uniform spaces like OKLab are an option, but we prioritized matching what anyone expects from "mix in 20% white." It's simple and predictable, though lightness steps may not look perceptually even. If you need strict perceptual uniformity, do a final visual check.
Both include the base color itself at 0%, then move toward white/black/gray in even increments (20% per step for 5 steps, 10% per step for 10 steps). Choose 10 steps for finer control.
No. Scale generation and code formatting run entirely in your browser's JavaScript; nothing is sent to toco.tools's servers.