Xerobit

Purple Hex Code and Color Values

Purple (CSS keyword purple) is #800080: rgb(128, 0, 128), hsl(300, 100%, 25%).

Purple: #800080

  • Hex
    #800080
  • RGB
    rgb(128, 0, 128)
  • HSL
    hsl(300, 100%, 25%)
  • OKLCH
    oklch(42.1% 0.1935 328.4)
  • CMYK
    0%, 100%, 0%, 50%
  • CSS name
    purple

Where the name purple comes from

purple is a named color in CSS Color 4, section 6.1.

One of the sixteen HTML 4.01 names (section 6.5), value #800080; CSS Color 4 says these came from the VGA palette.

CSS Color Module Level 4 lists the change "Addition of named color rebeccapurple" (#663399); purple kept its value #800080, which is fuchsia (#FF00FF) with the red and blue channels at 128 of 255 instead of 255.

No three-digit short form.

Shades and tints of Purple

  • 10% white #8D1A8D darkmagenta; 10% black #730073 purple
  • 20% white #993399 ; 20% black #660066
  • 30% white #A64DA6 ; 30% black #5A005A
  • 40% white #B366B3 ; 40% black #4D004D
  • 50% white #C080C0 ; 50% black #400040

Contrast of #800080

Against white 9.42:1 (passes AAA), against black 2.23:1 (fails); white text reads better on Purple. In HSV it is hsv(300, 100%, 50%).

Lightness rank 129 of 139; best partner white, 9.42:1.

Closest names to Purple

Purple has OKLCH hue 328 degrees.

NameHexOKLab distanceThan Purple
darkmagenta#8B008B0.028lighter
rebeccapurple#6633990.085lighter
indigo#4B00820.120darker
darkslateblue#483D8B0.132darker
darkviolet#9400D30.136lighter
darkorchid#9932CC0.139lighter
mediumvioletred#C715850.156lighter

Color harmony for Purple

  • Complementary: #008000 green
  • Analogous: #400080 indigo, #800040
  • Triadic: #808000 olive, #008080 teal
  • Split complementary: #408000 green, #008040 green

Purple with color vision deficiency

  • Protanopia: #003D83
  • Deuteranopia: #304B7D
  • Tritanopia: #842149

FAQ

What is the hex code for Purple?

#800080, or the keyword purple.

Which named color is closest to Purple?

darkmagenta (#8B008B), then rebeccapurple and indigo.