CSS named color

Purple Color Codes, Shades and Palettes

Purple is #800080. Copy its exact codes, compare twenty computed channel steps, and build complementary, analogous, or triadic palettes.

#800080RGB 128, 0, 128HSL 300°, 100%, 25%

Purple color codes

Every format below is calculated from #800080; use the buttons to copy a code exactly.

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

10 shades and 10 tints of Purple

These twenty steps use the original Color Lab’s channel-multiplication rule: each RGB channel is multiplied, rounded, and clamped between 0 and 255.

Darker channel steps

#0D000D
#1A001A
#260026
#330033
#400040
#4D004D
#5A005A
#660066
#730073
#800080

Lighter channel steps

#8D008D
#9A009A
#A600A6
#B300B3
#C000C0
#CD00CD
#DA00DA
#E600E6
#F300F3
#FF00FF

Computed harmonies and palette ideas

Companion hues use the original wheel’s exact offsets at 80% saturation and 50% lightness, so the relationship stays measurable and repeatable.

Complementary

#E619E6#19E619

Analogous

#E619E6#E61980#8019E6

Triadic

#E619E6#E6E619#19E6E6

How Purple is calculated

Purple is stored as the CSS named-color keyword “purple” with the six-digit value #800080. Splitting that value into red, green, and blue byte pairs produces RGB 128, 0, 128. The same channels convert to HSL 300°, 100%, 25% with the picker’s max-and-min formula, and to CMYK 0%, 100%, 0%, 50% after normalizing each channel to the zero-to-one range. All displayed HSL and CMYK components are rounded to whole numbers.

The shade series is not an invented set of labels. It multiplies the original RGB channels by factors from 0.1 through 1.0. That calculation runs from #0D000D at factor 0.1 to #800080 at factor 1.0. The tint series continues the same Color Lab rule from factor 1.1 through 2.0, with clamping whenever a channel reaches 255; its last result is #FF00FF. Clicking any square copies its precomputed code.

For wheel relationships, the base hue is 300 degrees. The complementary hue is 120 degrees, while the analogous companions sit 30 degrees on either side. Triadic companions are offset by 120 and 240 degrees. Like the working Color Lab wheel, those hue samples render at fixed 80% saturation and 50% lightness rather than changing Purple’s own saturation or lightness.

In the full 298-name catalog, the closest distinct RGB neighbors include Dark Magenta (#8B008B), Maroon 4 (#8B1C62), Deep Pink 4 (#8B0A50), Purple 4 (#551A8B). Distance is straight-line Euclidean distance between the three sRGB channel values, with equal-hex aliases excluded. Against #800080, black text measures 2.23:1 and white text measures 9.42:1, so white gives the stronger of those two contrast results. Check the ratio required by your specific text size before publishing.

Try Purple in the Color Picker

Pick any color and instantly get HEX, RGB, HSL, and CMYK codes.

Enter a hash followed by exactly six hexadecimal digits.
HEX
RGB
HSL
CMYK
Color Shades & Tints

Frequently asked questions

What is the HEX code for Purple?

Purple is recorded here as #800080. Its RGB channels are 128, 0, 128.

What are the HSL and CMYK values for Purple?

Using the Color Lab conversion math, Purple converts to HSL 300°, 100%, 25% and CMYK 0%, 100%, 0%, 50%. Values are rounded to whole units.

Should Purple use black or white text?

Black has a 2.23:1 contrast ratio and white has a 9.42:1 ratio against Purple. The higher computed ratio is white.