Color Mixer
Blend two HEX colors in perceptual OKLab so midpoints stay vivid, build a 3-10 stop ramp, and copy it as a CSS linear-gradient or HEX list.
Color Mixer - Mix and Blend Colors Online
A powerful color mixer tool that blends two colors together with adjustable mixing ratios. Mix colors in real-time, view results in multiple formats (HEX, RGB, HSL), and create beautiful color gradients with customizable steps. Perfect for web designers, graphic designers, and developers working on color schemes. See also our Color Picker Pro and Gradient Generator.
How does color mixing work?
This tool blends colors in OKLab, a perceptually uniform color space, instead of averaging raw sRGB values:
Why OKLab:
- sRGB is gamma-encoded, so averaging stored values muddies midpoints
- OKLab spaces colors the way the eye perceives them
- Midpoints stay vivid (yellow + blue trends green, not gray)
Mixing Process:
1. Convert each color from sRGB to linear-light
2. Convert linear RGB to OKLab (L, a, b)
3. Interpolate L, a and b by the mix ratio
4. Convert back to sRGB and clamp to valid range
5. Output in HEX, RGB and HSL
The result is a perceptually correct blend that matches how the colors actually look together on screen.
How do I use the color mixer?
Using the Color Mixer is simple:
1. Select Colors:
- Choose Color 1 using the color picker or enter HEX code
- Choose Color 2 using the color picker or enter HEX code
- Both colors display with live previews
2. Adjust Mixing Ratio:
- Drag the slider toward the color you want to dominate
- Left (0%) = Pure Color 1
- 50% = Equal mix of both colors
- Right (100%) = Pure Color 2
- Percentages update in real-time
3. View Results:
- See mixed color in large preview
- Get results in HEX, RGB, and HSL formats
- Click copy buttons to copy any format
4. Gradient Ramp (Optional):
- Toggle 'Show Steps' to enable
- Adjust slider to set number of stops (3-10)
- Click any stop to copy its color
- Use 'Copy CSS gradient' for a ready linear-gradient() string
- Use 'Copy HEX list' to grab every stop as HEX codes
All mixing happens instantly as you adjust settings!
What are color mixing ratios?
Mixing ratios determine how much of each color is used in the final blend:
Understanding Ratios:
- Ratio is expressed as percentages
- Color 1 + Color 2 always equals 100%
- Drag the slider toward the color you want to dominate
- Higher percentage = more influence on result
Common Ratios:
50/50 (Equal Mix):
- Perfect balance of both colors
- Creates midpoint color
- Example: Red + Blue = Purple
75/25 (Color 1 Dominant):
- Result leans heavily toward Color 1
- Subtle influence from Color 2
- Example: 75% Red + 25% Blue = Red-Purple
25/75 (Color 2 Dominant):
- Result leans heavily toward Color 2
- Subtle influence from Color 1
- Example: 25% Red + 75% Blue = Blue-Purple
90/10 or 10/90 (Tint/Shade):
- Very subtle color shift
- Useful for creating variations
- Creates tinted or shaded versions
Use Cases:
- 50/50: Creating intermediate colors
- 70/30: Color harmonies and variations
- 90/10: Subtle tints and highlights
- Custom ratios: Precise color matching
Adjust the slider to find the perfect balance for your design!

What is the gradient preview for?
The gradient preview shows smooth color transitions between your two colors:
What It Shows:
- Multiple color steps from Color 1 to Color 2
- Even distribution across the spectrum
- Each step is a different mixing ratio
- Creates smooth color progression
How Steps Work:
3 Steps:
- Color 1 (0%)
- Mixed Color (50%)
- Color 2 (100%)
5 Steps:
- Color 1 (0%)
- 25% mix
- 50% mix (equal blend)
- 75% mix
- Color 2 (100%)
10 Steps:
- Very smooth gradient
- Subtle color transitions
- Great for detailed palettes
Use Cases:
Color Palettes:
- Create complete color schemes
- Generate harmonious variations
- Build gradient-based palettes
UI Design:
- Background gradients
- Button states (hover, active)
- Progress indicators
- Loading animations
Graphic Design:
- Gradient backgrounds
- Color transitions
- Illustration color schemes
- Brand color variations
Web Development:
- CSS gradient values
- Theme color scales
- Accessible color ranges
- Design system colors
Click any step to copy its exact color value for use in your projects!
When should I use color mixing vs color generation?
Choose the right tool based on your needs:
Color Mixer - Use When:
Combining Existing Colors:
- You have two specific colors to blend
- Creating transitions between brand colors
- Finding midpoint between colors
- Generating color variants
Gradient Creation:
- Building smooth color transitions
- Creating color scales
- Designing gradient backgrounds
- Making color progressions
Color Matching:
- Finding specific color blends
- Creating custom intermediates
- Mixing to match a target color
- Fine-tuning color relationships
Color Palette Generator - Use When:
Starting from Scratch:
- Need complete color schemes
- Want complementary colors
- Generating random palettes
- Exploring color harmonies
Gradient Generator - Use When:
Complex Gradients:
- Need multi-color gradients
- Want CSS gradient code
- Creating radial or linear gradients
- Advanced gradient controls
Color Converter - Use When:
Format Conversion:
- Converting between HEX, RGB, HSL, CMYK
- Need single color in different formats
- Checking color values
- Getting color information
Best Practice:
- Use Color Mixer for precise two-color blending
- Use Palette Generator for complete schemes
- Use Gradient Generator for complex gradients
- Combine tools for best results
The Color Mixer excels at creating specific color blends and transitions between two known colors.
Key Features
- Mix two colors with adjustable ratios
- Interactive color pickers for both colors
- Real-time color mixing preview
- Results in HEX, RGB, and HSL formats
- Gradient ramp with 3-10 stops
- Click any gradient stop to copy color
- Copy any color format to clipboard
- One-click Copy CSS linear-gradient export
- One-click Copy HEX list export
- Live color previews for all colors
- Smooth ratio slider control
- Percentage display for both colors
- Perceptual OKLab color interpolation
- Create color transitions and gradients
- 100% client-side processing
- No server communication
- Works offline
- Dark mode support
- Mobile-friendly interface
