What you can do with Color Palette & Contrast
- Check color contrast
- Generate matching color palette
How this color and design utility works
Generate up to five color swatches from a chosen base color and harmony scheme, with copyable HEX, RGB, and HSL values and contrast against white.
Example input
Base color: #3B82F6; Scheme: AnalogousExample output
HEX swatches: #3B82F6, #3BCDF6, #3BA7F6, #3B5DF6, #3F3BF6; each includes RGB, HSL, and contrast vs white.Practical workflow
- Enter a base color such as #3B82F6 or choose one with the color picker.
- Choose Analogous, Monochromatic, Triad, Tetrad, or Complementary.
- Review each swatch together with its HEX, RGB, HSL, and contrast ratio against white.
- Copy an individual value using its matching HEX, RGB, or HSL button.
Common use cases
- Compare nearby or opposing hues while exploring a brand color direction.
- Copy individual HEX, RGB, or HSL values into a design or stylesheet.
- Check whether a generated swatch meets the normal-text WCAG AA contrast threshold against white.
Important notes and limitations
- The page offers five schemes and displays up to five unique colors for the selected base color.
- The base color must be opaque and is limited to 128 characters; alpha transparency is rejected because its rendered color and contrast depend on the background.
- Each card reports contrast against white only; it does not compare arbitrary foreground and background pairs.
- The chosen base color and scheme persist in browser local storage. No palette export or Tailwind theme download is provided.
Palette generation & Tailwind CSS config CLI
Export Tailwind 50-950 color scale definition
node -e "const steps = [50,100,200,300,400,500,600,700,800,900,950]; console.log('Tailwind scale keys:', steps.join(', '))"Outlines standard 11-step lightness ramp for design token generation.
Shade distribution & perceived lightness contrast
Uneven perceived lightness jumps across palette steps
Cause: Interpolating in legacy HSL color space where human eyes perceive yellow as much brighter than blue at identical lightness values.
Solution: Generate palettes in perceptual color spaces like OKLCH or CIELAB to guarantee uniform perceived lightness.
Continue your workflow
- Color Converter — convert individual colors between Hex, RGB, HSL, and CMYK.
- Contrast Checker — test contrast ratios between your palette shades.
Frequently asked questions
Which harmony schemes can I generate here?
Choose Analogous, Monochromatic, Triad, Tetrad, or Complementary from the Scheme menu to create the corresponding color swatches.
Which color formats can I copy from a palette card?
Each color card provides separate copy controls for its HEX, RGB, and HSL values.
What does the contrast result compare?
The ratio is calculated between each swatch and white. This page does not test custom foreground and background pairs.
Can I use a color with alpha transparency?
No. Enter an opaque base color; transparency changes the composited color, so contrast would depend on the background behind the swatch.