Color codes

Purple hex code #800080

#800080 is purple as CSS names it: a deep purple, half-strength red and blue with no green.

Purple #800080 CSS named color: purple

Purple color codes

HEX#800080
RGBrgb(128, 0, 128)
HSLhsl(300, 100%, 25%)
CMYKcmyk(0%, 100%, 0%, 50%)
More formats and code
HSV / HSBhsv(300, 100%, 50%)
OKLCHoklch(0.421 0.193 328.4)
RGB numbers128, 0, 128
CSScolor: #800080;
Tailwindbg-[#800080]
SwiftUIColor(red: 0.502, green: 0.000, blue: 0.502)
AndroidColor.parseColor("#800080")

CMYK here is a plain formula. Ask your print shop for the numbers their press uses.

Open in a tool: ConverterShade generatorContrast checkerColor wheelPalette generatorColor blindness simulator

Lighter and darker purple

Each step mixes in more white or black, in even steps for the eye. Tap a swatch to copy its code.

Lighter

Darker

Colors that go with purple

Complementary

Across the color wheel. Strong contrast, good for one button or one word.

Analogous

Its neighbors on the wheel. Calm, easy to use together.

Triadic

Three colors evenly spread. Lively, best with one in charge.

Pairs well in a brand

Purple and text

White text reads best on purple: 9.41:1. The same numbers hold for purple text on a white or a black page. Body text needs 4.5:1 for AA and 7:1 for AAA; large text needs 3:1.

TextContrastWCAG
AaWhite text on purple9.41:1AAA
AaBlack text on purple2.22:1Fails
Text in the sample post
How purple looks with color blindness

Other purple hex codes

Many people expect a brighter purple. Older color lists used #A020F0 for purple, and design apps often show something closer to medium purple #9370DB. CSS also has rebecca purple #663399, named in memory of a web developer's daughter, and indigo #4B0082 for a darker, bluer purple.

  • PurpleCSS named color: purple. The code on this page#800080
  • Rebecca purpleCSS named color: rebeccapurple#663399
  • Medium purpleCSS named color: mediumpurple#9370DB
  • Dark violetCSS named color: darkviolet#9400D3
  • IndigoCSS named color: indigo#4B0082
  • Bright purple (older lists)Common variant#A020F0

Purple in a small business brand

Deep purple feels creative and a little luxurious: yoga and wellness studios, spas, coaches and event brands use it. It carries white text well, so it makes a strong post background or button. Light purples like lavender suit grounds with dark text. Gold on purple is a classic pair for something festive.

FAQ

What is the hex code for purple?

Purple is #800080 as the CSS named color purple. In RGB that is rgb(128, 0, 128), and in CMYK cmyk(0%, 100%, 0%, 50%).

What text color goes on purple?

White text, at a contrast of 9.41:1, which passes WCAG AAA. Black text reaches 2.22:1, too low for any text.

What is the hex code for dark purple?

There is no CSS name dark purple. Indigo #4B0082 and the CSS purple #800080 are the usual dark picks.

Can I put white text on purple?

Yes. White on #800080 is 9.41:1, which passes WCAG AAA for any size of text.

More color codes

All color codes

Keep your brand colors in one place

Add your brand colors once in Postfjord's design editor, under Settings, Brand, and every template can use them. Try it free.

Start free