Red and blue, 50/50
- Colour A (hex)
- #FF0000
- Colour B (hex)
- #0000FF
- Amount of colour B
- 50
- In-between shades
- 3
Result Blended colour: #800080
RGB: rgb(128, 0, 128)
HSL: hsl(300, 100%, 25%)
CSS color-mix(): color-mix(in srgb, #FF0000 50%, #0000FF)
- Colour A = rgb(255, 0, 0), colour B = rgb(0, 0, 255), share of B = 50%.
- Each channel = A + (B − A) × 0.5, rounded to a whole number.
- Result = rgb(128, 0, 128) = #800080.
Averaging each channel gives 128 red and 128 blue, the CSS named colour purple.