Skip to content
PantoneTools
pink
CSS Named Colors

Purple

purple · #800080

HEX

#800080

RGB

rgb(128, 0, 128)

CMYK

cmyk(0%, 100%, 0%, 50%)

HSL

hsl(300, 100%, 25%)

LAB

lab(29.8, 58.9, -36.5)

What is Purple?

Purple is the purple reference in the CSS Named Colors. Its sRGB value is #800080 (rgb 128, 0, 128). It sits in the pink family. The 147 named colors defined by the W3C CSS Color Module Level 4 specification — usable directly in CSS as keywords like 'crimson' or 'rebeccapurple'. See disclaimer for accuracy and trademark notes.

Accessibility

WCAG 2.1 contrast checks for Purple as a background.

Black text on this color

Sample text · 2.23 : 1
AA Normal
AA Large
AAA Normal
AAA Large

White text on this color

Sample text · 9.42 : 1
AA Normal
AA Large
AAA Normal
AAA Large

Shades, tints & tonal scale of Purple

An 11-step tonal scale derived from Purple (#800080). Click any swatch to copy its HEX. Use these as a starting point for design tokens, hover states, and disabled states in a design system.

Copied #F5EBF5

50

#F5EBF5

#F5EBF5

Copied #EBD6EB

100

#EBD6EB

#EBD6EB

Copied #D6ADD6

200

#D6ADD6

#D6ADD6

Copied #C080C0

300

#C080C0

#C080C0

Copied #A040A0

400

#A040A0

#A040A0

Copied #800080

500

#800080

#800080

Copied #6D006D

600

#6D006D

#6D006D

Copied #530053

700

#530053

#530053

Copied #3A003A

800

#3A003A

#3A003A

Copied #200020

900

#200020

#200020

Copied #0F000F

950

#0F000F

#0F000F

Lighter tints (mixed with white)

Copied #9C6C9C

15%

#9C6C9C

Copied #B395B3

30%

#B395B3

Copied #C7B3C7

45%

#C7B3C7

Copied #D8CBD8

60%

#D8CBD8

Copied #E8E1E8

75%

#E8E1E8

Darker shades (mixed with black)

Copied #770077

15%

#770077

Copied #6C006C

30%

#6C006C

Copied #610061

45%

#610061

Copied #530053

60%

#530053

Copied #420042

75%

#420042

Color harmonies for Purple

Classic color-theory harmonies derived from rotating the hue of Purple. Use these to build accent palettes, brand systems, and accessible UI color pairings.

Complementary

180° opposite — strongest contrast

Copied #800080

#800080

#800080

Copied #008000

#008000

#008000

Triadic

Three colors 120° apart

Copied #800080

#800080

#800080

Copied #7F8000

#7F8000

#7F8000

Copied #007F80

#007F80

#007F80

Analogous

Two neighbors ±30° on the wheel

Copied #400080

#400080

#400080

Copied #800080

#800080

#800080

Copied #800040

#800040

#800040

Split-complementary

Base + two colors flanking its complement

Copied #800080

#800080

#800080

Copied #408000

#408000

#408000

Copied #008040

#008040

#008040

Tetradic

Two complementary pairs

Copied #800080

#800080

#800080

Copied #800000

#800000

#800000

Copied #008000

#008000

#008000

Copied #007F80

#007F80

#007F80

Square

Four colors evenly spaced 90° apart

Copied #800080

#800080

#800080

Copied #804000

#804000

#804000

Copied #008000

#008000

#008000

Copied #004080

#004080

#004080

Purple in every color space

Full conversion of Purple across the color spaces designers and developers actually use — including OKLCH (the perceptually-uniform space that powers Tailwind v4 and CSS Color Module Level 4) and HWB.

HEX

#800080

RGB

rgb(128, 0, 128)

CMYK

cmyk(0%, 100%, 0%, 50%)

HSL

hsl(300, 100%, 25%)

HSV

hsv(300, 100%, 50%)

HWB

hwb(300 0% 50%)

CIE Lab

lab(29.8 58.9 -36.5)

OKLCH

oklch(42.1% 0.193 328.4)

XYZ (D65)

xyz(12.80, 6.15, 20.93)

Copy-ready code for Purple

Drop-in snippets for CSS, Tailwind, Sass, iOS Swift, and Android XML. Click the copy button on any snippet to put it on your clipboard.

CSS

color: #800080;
background-color: #800080;

CSS variable

:root {
  --color-purple: #800080;
}

Tailwind config

// tailwind.config.js
colors: {
  'purple': '#800080',
}

Sass

$color-purple: #800080;

Swift UIColor

UIColor(red: 0.502, green: 0.000, blue: 0.502, alpha: 1.0)

Android XML

<color name="purple">#800080</color>

Closest match in every color system

The nearest Purple equivalent in every other color system on this site, ranked by ΔE2000 perceptual distance. Useful when translating between design-system, web-standard, and industrial color references.

Closest in CSS Named Colors

Top 6 ΔE2000-closest entries within the same collection.

Top 6 ΔE2000-closest Pantone references. Cross-system matching is approximate — see disclaimer.

Top 6 ΔE2000-closest RAL Classic references for industrial coating cross-reference.

Copied #6C4675

RAL 4005

#6C4675

Blue lilac

Copied #A03472

RAL 4006

#A03472

Traffic purple

Copied #434B4D

RAL 7011

#434B4D

Iron grey

Copied #343E40

RAL 6012

#343E40

Black green

Copied #924E7D

RAL 4008

#924E7D

Signal violet

Copied #6D3F5B

RAL 4001

#6D3F5B

Red lilac

FAQ about Purple

What is the HEX code for Purple?

Purple (purple) has the HEX code #800080. In RGB it is rgb(128, 0, 128), and in CMYK it is cmyk(0%, 100%, 0%, 50%).

What is the OKLCH value of Purple?

Purple converts to oklch(0.421 0.193 328.4). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.

Is Purple accessible for body text?

Used as a background, Purple has a contrast ratio of 2.23:1 with black text and 9.42:1 with white text. WCAG 2.1 AA requires 4.5:1 for normal text. The current recommendation is to use white text and verify in real UI context.

What is the closest Pantone to Purple?

The closest Pantone reference to Purple by ΔE2000 perceptual distance is Pantone 259 C (#6A1B7B). Cross-system Pantone matching is approximate; for color-critical print work, verify with a physical Pantone guide.

What is the closest RAL color to Purple?

The closest RAL Classic reference to Purple by ΔE2000 distance is RAL 4005 (Blue lilac, #6C4675). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.

What is the complementary color of Purple?

The complementary color (180° opposite on the HSL color wheel) of Purple is #008000. Use it for high-contrast accents, error states, or call-to-action pairings.

Data provenance & source

CSS Named Colors (CSS Color Module Level 4)

The 147 named colors defined by the W3C CSS Color Module Level 4 specification. Origin: VGA (16) + X11 (rest) + 'rebeccapurple'. Use as a reference for web color names that all browsers natively support. Names like 'crimson' or 'rebeccapurple' work as CSS values without any framework.

Source type
derived
Confidence
high
License
W3C permissive document license
Last reviewed
2026-05-24

Workflow tags

css
web-standard
named-keyword
pink

CSS named colors are sRGB digital values defined for browsers. For print, convert to a process-appropriate color and proof against substrate.

CSS Named Colors · Purple — #800080 | PantoneTools