CSS Box Shadow Gradient Playground

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.

A few things to know.

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.

  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.