Gradient generator
A gradient maker for CSS: choose two colors and an angle, then copy the code of your color gradient.
Why does a CSS gradient look gray in the middle?
A plain two-stop CSS gradient blends in sRGB, which often turns the middle gray or muddy. The OKLab option adds intermediate stops calculated in OKLab, so the middle keeps its color.
The generated CSS works in every browser, because it lists the stops as ordinary hex colors.
Ready answers
| From | To | Middle in OKLab | Middle in sRGB |
|---|---|---|---|
#FF5733 | #3366CC | #A46F90 | #995F80 |
#0000FF | #FFFF00 | #6CABC7 | #808080 |
#FF69B4 | #40E0D0 | #C4AEC2 | #A0A5C2 |
#000080 | #FFD700 | #6E7E7C | #806C40 |