Color reference

Purple #800080

Purple is the standard CSS named color #800080, a dark equal-channel red/blue color distinct from the brighter CSS fuchsia/magenta value.

Purple is the CSS named color keyword purple, standardized at #800080 in sRGB.

Purple #800080 9.42:1 with white text

Color values

HEX#800080
RGBrgb(128, 0, 128)
HSLhsl(300 100% 25%)
HSV300°, 100%, 50%
CMYK0%, 100%, 0%, 50%

HEX/RGB/HSL/HSV are deterministic sRGB representations. CMYK here is a mathematical approximation, not a printer-profile conversion.

Black or white text?

Black text 2.23:1 — AA normal text fails
White text 9.42:1 — AA normal text passes

AA normal text: black fails; white passes.

AA large text: black fails; white passes.

WCAG contrast thresholds use 4.5:1 for normal text and 3:1 for large text. Do not round a near-threshold result upward when testing conformance.

Tints and shades of Purple

These steps are computed by RGB-mixing #800080 toward white or black. They are generated values, not official named colors.

80% tint #E6CCE6
60% tint #CC99CC
40% tint #B366B3
20% tint #993399
Base #800080
20% shade #660066
40% shade #4D004D
60% shade #330033
80% shade #1A001A

Need more control? Use the Tints and Shades Generator or Lighten / Darken tool.

CSS usage

.example {
  color: #FFFFFF;
  background-color: purple;
}

You can use either purple or #800080 in CSS; both resolve to the same sRGB color.