Color · Made a little simpler

Border Generator

Tune border width, style and color. Link the edges for one rule or select separate edges, round the corners and measure the effect of box sizing.

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

Border preview

Declared size 144 × 76 px.

Border edges
Box geometry

Generated 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

Border Generator: how to use it

  1. Keep Link all edges selected for a uniform stroke, or turn it off and select Top, Right, Bottom or Left.
  2. Choose a width, line pattern and color. Set Corner radius and compare the measured size for Content box and Border box.
  3. Copy or download the generated stylesheet. Use its border class on the box you want to style.

Limits and notes

Border widths range from 0 to 18 px. The one-value corner radius ranges from 0 to 80 px. Colors accept CSS names and numeric sRGB HEX, RGB and HSL. The preview has a declared size of 144 × 76 px.

How your privacy works →

Border Generator: common questions

What changes when I link the four sides again?

The editor copies the Top settings to the other edges and switches to a single border shorthand.

Why is the rendered card wider than its declared width?

Content box puts the left and right borders outside the declared content width. Border box includes them in the declared width when there is room.

How can I remove only the right edge?

Unlink the edges, choose Right, and set Right border style to None. Its computed width is zero.

Guides