Purple colour (#800080)

Purple is dark a pink/magenta with hex code #800080, one of the 148 named colours every browser understands, so you can write color: ${name} directly in CSS. In RGB it is 128, 0, 128; in HSL 300°, 100%, 25%. Use the tool to explore shades and harmonies.

✓ Runs in your browser — nothing uploaded Free, no sign-upNo watermark

How to use the Purple colour

  1. The colour is pre-filled; click Explore to see all formats, shades and harmonies.
  2. Edit the value to try a variation.
  3. Copy the code you need.

Purple in every format

FormatValue
HEX#800080
RGBrgb(128, 0, 128)
RGB (0–1)0.502, 0.000, 0.502
HSLhsl(300, 100%, 25%)
CMYK (approx.)0%, 100%, 0%, 50%
CSScolor: purple;

Shades and tints of Purple

Same hue and saturation, lightness from 90% to 10%:

#ffccff #ff99ff #ff66ff #ff33ff #ff00ff #cc00cc #990099 #660066 #330033

Colours that go with Purple

HarmonyColours
Complementary #008000
Triadic #808000 #008080
Analogous #800040 #400080

Similar named colours

The closest CSS named colours by RGB distance, useful when you need a keyword instead of a hex code or want a near match:

ColourHEXDifference
darkmagenta #8b008bvery close
indigo #4b0082close
rebeccapurple #663399close
mediumvioletred #c71585close
darkslateblue #483d8bnoticeably different

Accessibility

Contrast ratio of Purple against white is 9.42:1 (passes WCAG AA for normal text) and against black 2.23:1 (fails). Use Purple for text on white backgrounds.

Frequently asked questions

What is the hex code for Purple?

#800080.

What is Purple in RGB?

rgb(128, 0, 128).

What colour is complementary to Purple?

#008000, directly opposite on the colour wheel.

Privacy

This tool runs entirely inside your browser using WebAssembly and the Canvas/File APIs. Your files are never uploaded to ToolFlint or any third party; you can verify this in your browser's network tab or by switching to airplane mode after the page loads. Read how we process files.

Last updated 2026-09-23.