Color · Made a little simpler

CSS Box Shadow Gradient Playground

Preview a linear, radial or conic gradient with up to five box shadows. Adjust stops, spread, inset and radius, then export CSS and settings.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Preview

Gradient
Shadow layers
Shadow 1

Stylesheet

#7D9065rgb(125, 144, 101)

Preview composited on white. HEX stores alpha in 8 bits; decimal alpha is retained in RGB and HSL.

HEX#7D9065
RGBrgb(125, 144, 101)
HSLhsl(86.512 17.551% 48.039%)
RGB percentrgb(49.02% 56.471% 39.608%)
Normalized RGBA0.4902, 0.5647, 0.3961, 1
CSS variable--color: #7D9065;

Color names use standard CSS keywords, such as red or rebeccapurple.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

CSS Box Shadow Gradient Playground: how to use it

  1. Choose a linear, radial or conic gradient. Set two colors and stop positions, then move the center or change the angle where available.
  2. Set the corner radius and edit or add shadow layers. Move layers to change which shadow sits in front when they overlap.
  3. Copy or download the .gradient-card CSS rule. Download settings to save the gradient and shadow values alongside the stylesheet.

Limits and notes

Two color stops, five optional shadow layers and numeric controls with up to two decimal places. Supports sRGB CSS color names, HEX, RGB and HSL, including alpha. The stylesheet sets the visual effect. The component’s layout sets its dimensions.

How your privacy works →

CSS Box Shadow Gradient Playground: common questions

Which box shadow is drawn in front?

The first listed shadow paints over subsequent shadows in the same region. Changing their order changes how overlapping colors blend.

How do I produce a hard edge in the gradient?

Give both colors the same stop position. The colors change at that point instead of blending across an interval.

What is the difference between blur and spread?

Blur softens the shadow edge. Spread expands or contracts the shadow shape before blurring. Negative spread can tighten a wide soft shadow.

Guides