Free tool · Color palettes · Runs in your browser
Color palette for purple
Short answer
Purple is #800080: the CSS color named purple, defined by the W3C, written rgb(128, 0, 128) or hsl(300, 100%, 25%). Its complement is #008000; analogous colors are #400080 and #800040; a triad adds #808000 and #008080.
#800080 · rgb(128, 0, 128) · hsl(300, 100%, 25%) · contrast 9.42:1 on white, 2.23:1 on black
Complementary
Analogous
Triadic
Split complementary
Tetradic (rectangle)
Square
Tints (toward white)
Shades (toward black)
CSS variables for the analogous palette
:root {
--color-1: #400080;
--color-2: #800080;
--color-3: #800040;
}Nothing is uploaded. Click a color to copy its hex code.
Key takeaways
- Purple is #800080, rgb(128, 0, 128), hsl(300, 100%, 25%), CIELAB 29.8, 58.9, -36.5.
- Contrast: 9.4:1 on white and 2.2:1 on black. White text on purple passes the WCAG AA minimum of 4.5:1.
- Its complement is #008000; the analogous colors are #400080 and #800040; the triad is #800080, #808000, #008080.
- 3 of the 9 tints and 9 of the 9 shades have at least 4.5:1 on a white background; the first shade that does is #730073.
- Photographs rich in purple gave #6E0BA2, #531179, #B870C9, #3D154E, #772862, #B83BA3; the nearest of their colors to #800080 was 7.0 CIEDE2000 units away.
- For people with deuteranopia the closest pair in the triad is 16.1 apart, against 33.5 for typical vision.
Measured: a palette for purple, from photographs
On white it has a contrast ratio of 9.4:1 (passes the WCAG AA minimum of 4.5:1 for normal text) and on black 2.2:1. A palette extracted from three photographs rich in purple (89%, 48% and 45% of their pixels near the hue) came out as #6E0BA2, #531179, #B870C9, #3D154E, #772862, #B83BA3.
We searched Wikimedia Commons for purple subjects and kept photographs under Creative Commons or public domain licenses. Of 30 candidates we kept the three with the largest share of pixels within 30 degrees of the hue of the color, with saturation of at least 25% and lightness between 15% and 75%. The tool's own palette code (k-means in CIELAB, no random numbers) found five colors in each photograph. The six colors in the table below come from only the pixels inside the color window, from the three photographs, so they are six shades and neighbors of purple rather than the whole picture.
| Color | Share | Nearest CSS name | Contrast on white | Contrast on black |
|---|---|---|---|---|
| #6E0BA2 | 25.4% | near rebeccapurple | 9.41:1 | 2.23:1 |
| #531179 | 21.1% | near indigo | 12.18:1 | 1.72:1 |
| #B870C9 | 18.7% | near orchid | 3.39:1 | 6.20:1 |
| #3D154E | 13.4% | near indigo | 14.83:1 | 1.42:1 |
| #772862 | 12.2% | near purple | 9.27:1 | 2.26:1 |
| #B83BA3 | 9.2% | near mediumvioletred | 5.01:1 | 4.19:1 |
Purple appears here as near rebeccapurple, near indigo, near orchid, near indigo, near purple, near mediumvioletred. The photo palette is a starting point: colors from a photograph are rarely pure, and the table shows how each performs as text on white and black.
Measured: the photographs
| Photograph | Photographer, license | Pixels near the hue | Five colors |
|---|---|---|---|
| Purple lavender field (Unsplash) | Francis Cheung riceball, CC0 | 89% | #5B0988 30%, #7105A8 26%, #471069 20%, #36134A 15%, #23142A 9% |
| Purple flower (178908601) | Peter Balcerzak, CC BY-SA 3.0 | 48% | #B372CA 30%, #5F3453 27%, #67288D 20%, #293417 13%, #7B9051 11% |
| Purple dahlia close up | NonNerd, CC0 | 45% | #B348A8 26%, #7C817B 22%, #5A1447 18%, #E0B2E9 17%, #3B3338 17% |
The photographs are credited with their Wikimedia Commons license. The extracted lists are the exact tool output.
Colors that go with purple
| Harmony | Colors | Closest pair, typical vision | Protanopia | Deuteranopia | Tritanopia |
|---|---|---|---|---|---|
| Complementary | #800080, #008000 | 84.7 | 56.7 | 46.9 | 59.0 |
| Analogous | #400080, #800080, #800040 | 12.7 | 5.4 | 10.2 | 12.0 |
| Triadic | #800080, #808000, #008080 | 33.5 | 28.0 | 16.1 | 29.1 |
| Split complementary | #800080, #408000, #008040 | 10.9 | 7.4 | 9.5 | 4.7 |
| Tetradic (rectangle) | #800080, #800000, #008000, #008080 | 27.8 | 26.5 | 13.2 | 5.8 |
| Square | #800080, #804000, #008000, #004080 | 27.7 | 3.1 | 5.7 | 11.3 |
The complement, #008000, sits opposite #800080 on the color wheel (hue + 180 degrees); Wikipedia's color scheme article describes analogous schemes as neighbors on the wheel and a triadic scheme as colors 120 and 240 degrees apart. Under protanopia, deuteranopia and tritanopia the colors are simulated with the Machado model at full severity; a closest pair below about 10 is hard to tell apart.
Purple in numbers
| Notation | Value |
|---|---|
| Hex | #800080 |
| RGB | rgb(128, 0, 128) |
| HSL | hsl(300.0, 100.0%, 25.1%) |
| CMYK (simple conversion) | 0%, 100%, 0%, 50% |
| CIELAB (D65) | 29.8, 58.9, -36.5 |
| Nearest CSS color name | purple #800080 (exact) |
| Contrast on white | 9.42:1 |
| Contrast on black | 2.23:1 |
Tints, shades and accessible text
| Step | Tint (toward white) | Contrast on white | Shade (toward black) | Contrast on white |
|---|---|---|---|---|
| 10% | #8D1A8D | 7.88:1 | #730073 | 10.62:1 |
| 20% | #993399 | 6.39:1 | #660066 | 11.95:1 |
| 30% | #A64DA6 | 4.96:1 | #5A005A | 13.27:1 |
| 40% | #B366B3 | 3.84:1 | #4D004D | 14.76:1 |
| 50% | #C080C0 | 2.96:1 | #400040 | 16.25:1 |
| 60% | #CC99CC | 2.33:1 | #330033 | 17.67:1 |
| 70% | #D9B3D9 | 1.84:1 | #260026 | 18.91:1 |
| 80% | #E6CCE6 | 1.48:1 | #1A001A | 19.83:1 |
| 90% | #F2E6F2 | 1.21:1 | #0D000D | 20.53:1 |
3 tints and 9 shades reach 4.5:1 against white. The WCAG success criterion 1.4.3 asks for at least 4.5:1 for normal text and 3:1 for large text; criterion 1.4.6 asks for 7:1 for the enhanced level.
Use it in CSS
:root { --purple-1: #6e0ba2; --purple-2: #531179; --purple-3: #b870c9; --purple-4: #3d154e; --purple-5: #772862; --purple-6: #b83ba3; }
The complement and analogous colors of #800080: #008000, #400080, #800040.
Free tools:Color palette generatorPalette from an imageImage to textCompress an image
Check the contrast before you use it for text
- Purple #800080 on white: 9.42:1; on black: 2.23:1.
- The darkest shade in the table, #0D000D, reaches 20.53:1 on white.
- Large text (at least 18 point, or 14 point bold) needs 3:1; normal text needs 4.5:1; the enhanced level needs 7:1.
- Do not use color as the only way to tell things apart: about 1 in 12 men have a color vision deficiency.
How the numbers were made
The hex value of purple is the W3C CSS named color. Harmonies rotate the hue in HSL and keep saturation and lightness. Contrast follows the WCAG 2 definition with relative luminance. Color differences use CIEDE2000, which Wikipedia notes is designed so that a difference of 1.0 stands for a just noticeable difference. Color blindness is simulated with the matrices of Machado, Oliveira and Fernandes (2009) at severity 1.0. Palette extraction: pixels are grouped into 32 levels per channel and clustered with k-means in CIELAB; the same picture always gives the same palette. The accuracy test on pictures of known colors is on the palette generator page.
Questions people ask
What is the hex code for purple?
Purple is #800080 (the W3C CSS named color), rgb(128, 0, 128).
What color goes with purple?
The complement of #800080 is #008000. Analogous colors are #400080 and #800040; a triad is #800080, #808000, #008080.
Is #800080 accessible for text?
On white it has 9.42:1 and on black 2.23:1. The WCAG AA minimum for normal text is 4.5:1, so white text on #800080 passes.
Can people with color blindness tell the purple palette apart?
For the six colors of the photo palette, the closest pair is 7.1 apart for typical vision and 6.9 for deuteranopia (CIEDE2000; below about 10 is hard).
How was the palette made?
The tool found the dominant colors of the photographs with k-means clustering in CIELAB. It runs in your browser; you can do the same with your own picture on the palette from image page.
Can I use these colors commercially?
Colors themselves are not licensed. The photographs used to find them keep their Creative Commons licenses, shown in the table.
Can I get a palette from my own photo?
Yes. Use the palette from an image tool; nothing is uploaded.
How many colors should a palette have?
Many designs use five: one dominant, one or two supporting, one accent and a neutral. The tool lets you choose 3 to 10 when you extract from a picture.
What is the difference between tints and shades?
A tint mixes the color with white and a shade mixes it with black. The table shows nine of each in steps of 10%.
Related
Sources and how we checked
- W3C: CSS Color Module Level 4 (named colors) (read 2026-10-10)
- W3C: Understanding Success Criterion 1.4.3, Contrast (Minimum) (read 2026-10-10)
- W3C: Understanding Success Criterion 1.4.6, Contrast (Enhanced) (read 2026-10-10)
- Wikipedia: Color scheme (read 2026-10-10)
- Wikipedia: Color difference (CIEDE2000) (read 2026-10-10)
- Machado, Oliveira and Fernandes: A physiologically-based model for simulation of color vision deficiency (2009) (read 2026-10-10)
- Wikimedia Commons (the photographs, under the licenses shown) (read 2026-10-10)
Reviewed October 10, 2026. The palettes were found with the tool's own code from Creative Commons photographs; contrast, harmonies and color differences are computed. The files and results are in data/seo/hub/evidence/2026-10-10/palette.