Skip to content
Musterli

Vivid

Carnival gradient

Yellow, red and violet, as colorful as a carnival parade.

Customize in the editor

Change angle, shape and colors, then export as CSS, SVG or PNG.

Colors

The color stops of the gradient. Click a value to copy it.

  1. Color 1

    Text in black, contrast 14.2:1

  2. Color 2

    Text in black, contrast 5.3:1

  3. Color 3

    Text in white, contrast 7.3:1

Code

Paste the lines into your element's rule. The first line is a fallback color, the second the gradient for every browser, the third interpolates in OKLCH for modern browsers.

CSS

background-color: #f7d22a;
background-image: linear-gradient(90deg, #f7d22a 0%, #f9ce1d 5.56%, #fbc200 11.11%, #fcb000 16.67%, #fc9a00 22.22%, #fc8100 27.78%, #fe6200 33.33%, #fc4621 38.89%, #f73534 44.44%, #f52f39 50%, #f32c41 55.56%, #ed2356 61.11%, #e01a6f 66.67%, #cd1989 72.22%, #b61da1 77.78%, #9d22b2 83.33%, #8826bd 88.89%, #7928c2 94.44%, #7429c3 100%);
background-image: linear-gradient(90deg in oklch, #f7d22a 0%, #f9ce1d 5.56%, #fbc200 11.11%, #fcb000 16.67%, #fc9a00 22.22%, #fc8100 27.78%, #fe6200 33.33%, #fc4621 38.89%, #f73534 44.44%, #f52f39 50%, #f32c41 55.56%, #ed2356 61.11%, #e01a6f 66.67%, #cd1989 72.22%, #b61da1 77.78%, #9d22b2 83.33%, #8826bd 88.89%, #7928c2 94.44%, #7429c3 100%);

Tailwind

bg-[#f7d22a] bg-[linear-gradient(90deg,_#f7d22a_0%,_#f9ce1d_5.56%,_#fbc200_11.11%,_#fcb000_16.67%,_#fc9a00_22.22%,_#fc8100_27.78%,_#fe6200_33.33%,_#fc4621_38.89%,_#f73534_44.44%,_#f52f39_50%,_#f32c41_55.56%,_#ed2356_61.11%,_#e01a6f_66.67%,_#cd1989_72.22%,_#b61da1_77.78%,_#9d22b2_83.33%,_#8826bd_88.89%,_#7928c2_94.44%,_#7429c3_100%)]

Take the gradient further

The same colors in other generators. Each card opens the editor with these colors.

Keep working with the colors

Turn the color stops into a palette or a full color scale.

How to use this gradient

Copy the CSS into the rule of the element that should carry the gradient, for example a section, a card or a button. For text on top, pick a text color with enough contrast on every color stop; the values next to the colors help you with that. In the editor you change angle, shape and easing and can also export the gradient as an image.

All gradients
  • Northern Lights

    Green, turquoise and violet, like an aurora over a dark sky.

  • Kingfisher

    Bright blue with an orange accent, like the bird's plumage.

  • Neon Night

    Pink, violet and cyan like neon signs on a rainy night.

  • Parrot

    Lime green, turquoise and blue, loud and cheerful.

  • Hibiscus

    A radial blend from orange to vivid pink.

  • Observatory

    A deep night blue that lightens from the top.