#800080

Purple — Color Codes & Palette

#800080  ·  rgb(128, 0, 128)  ·  hsl(300, 100%, 25%)

Color Codes

Format Value
HEX #800080
RGB rgb(128, 0, 128)
HSL hsl(300, 100%, 25%)

Shades of Purple

#750075#6B006B#610061#570057#4D004D#420042#380038#2E002E

Tints of Purple

#A800A8#D100D1#FA00FA#FF24FF#FF4DFF#FF75FF#FF9EFF#FFC7FF

Color Pairings & Harmony

Complementary
#008000
Analogous +30°
#800040
Analogous −30°
#400080
Triadic +120°
#808000
Triadic −120°
#008080

Contrast & Accessibility (WCAG 2.1)

vs. White (#FFFFFF)
9.42:1 — AAA pass for normal text
vs. Black (#000000)
2.23:1 — Fail

CSS Snippet

.element {
  color: #800080;
}

.element-bg {
  background-color: #800080;
  color: #ffffff;
}

.element-border {
  border: 2px solid #800080;
}

About Purple

Purple is a dark color with vivid, highly saturated, defined by the hex code #800080. Its exact color model values are rgb(128, 0, 128) in RGB and hsl(300, 100%, 25%) in HSL (hue 300°, saturation 100%, lightness 25%). On a white background the contrast ratio is 9.42:1 — AAA pass for normal text, and on black it is 2.23:1 — Fail. Use Purple for UI elements, backgrounds, text, borders, or decorative accents. The shades section below shows progressively darker variations, while the tints strip shows progressively lighter versions — both useful for building a tonal palette. The harmony swatches provide complementary, analogous, and triadic pairings based on the HSL hue wheel.

Want to explore this color interactively, generate palettes, or convert between color formats? The DevArbor Color Picker has you covered.

Open the Color Picker →

Frequently Asked Questions

What is the RGB value of Purple?
The RGB value of Purple (#800080) is rgb(128, 0, 128). Red = rgb(128, 0, 128), representing the amounts of red, green, and blue light on a 0–255 scale.
Is Purple accessible on a white background?
The contrast ratio of Purple on white (#FFFFFF) is 9.42:1 — AAA pass for normal text. On black (#000000) the contrast ratio is 2.23:1 — Fail. WCAG 2.1 requires 4.5:1 for AA (normal text) and 7:1 for AAA.
What colors pair well with Purple?
Based on color theory, Purple (hsl(300, 100%, 25%)) pairs well with its complementary, analogous, and triadic hues. See the harmony swatches above for the exact hex values of each pairing type.