Skip to content

Desktop

Windows Forms Colors

System.Drawing.Color in WinForms and WPF-adjacent stacks. FromArgb packs alpha in the high byte for translucent controls. Spec reference: Documentation.

Open color converter →

Starter template

// System.Drawing (WinForms)
button1.BackColor = Color.FromArgb(255, 124, 58, 237);
button1.ForeColor = ColorTranslator.FromHtml("#7C3AED");

Color samples

FAQ

FromArgb with or without alpha?

Color.FromArgb(255, r, g, b) sets opaque alpha in the first argument. Omitting alpha uses 255 by default in some overloads — check your .NET version docs.

KnownColor vs custom RGB?

Color.MediumPurple is fast for prototypes. Brand UI should use explicit RGB/HEX from your design system.

Can I copy the syntax chips?

Yes — click the secondary chip to copy platform syntax. HEX and RGB chips copy sRGB values for mockups, design handoff, and ChromaXP tools.

Are RGB and CMYK print-ready?

RGB and CMYK here are computed from HEX for quick reference. For ink and paper, re-check against your print profile or Pantone bridge.