Purple color: #800080
The CSS keyword purple is #800080, rgb(128, 0, 128) or hsl(300, 100%, 25%). Its codes to copy, 50–950 tint scale, harmonies and contrast on white and black.
Part of design tools.
About Purple
Purple is a dark magenta. Its hue sits at 328° in OKLCH and 300° in HSL — the two wheels are spaced differently, which is why the numbers disagree.
The keyword purple is one of the sixteen original HTML 4 colors, the whole palette of CSS 1, so it is understood by every browser and every email client ever shipped.
CSS purple is #800080, a half-intensity magenta from HTML 4. The X11 purple is #a020f0, a much brighter and bluer violet, which is why CSS purple looks redder than the name leads many people to expect.
Purple tint scale, 50 to 950
Eleven steps at fixed perceived lightness, in OKLCH, holding purple’s own hue from end to end. The keyword itself falls closest to step 700 (#831c82), the one outlined; step 500 is #c151bf.
Harmonies built on Purple
Hue angles measured in OKLCH, so every accent keeps purple’s perceived lightness. Its complement is #005e23, closest to the named color darkgreen.
Complementary
Analogous
Triadic
Split-complementary
Purple on white and on black
White text reads better on purple (9.41:1). As a text color it is readable on a white page (9.41:1, AAA). AA asks 4.5:1 for body text and 3:1 for large text; AAA asks 7:1.
Named colors close to Purple
Open purple in the full tools
- Open in Color Converter — convert it to any other notation.
- Open in Palette Generator — export its scale as --purple-50 … --purple-950 tokens.
- Open in Color Harmonies — turn the wheel and compare OKLCH with HSL.
- Open in Contrast Checker — test it against any background, with the closest passing shade.
- Open in Color System Generator — derive a light and dark token set from it.
Or browse every named color from the color converter.