Purple to HSL — Color Code

#800080
Format Value
HEX #800080
RGB rgb(128, 0, 128)
HSL hsl(300, 100%, 25.1%)
CMYK cmyk(0%, 100%, 0%, 49.8%)
HSV hsv(300, 100%, 50.2%)

purple color harmonies

Tints & shades of purple

Tints (lighter)

#8c178c #972e97 #a346a3 #ae5dae #ba74ba #c58bc5 #d1a2d1 #dcb9dc #e8d1e8 #f3e8f3

Shades (darker)

#740074 #690069 #5d005d #510051 #460046 #3a003a #2f002f #230023 #170017 #0c000c

Contrast & accessibility

The quick brown fox

On white · 9.42:1 · AAA

The quick brown fox

On black · 2.23:1 · Fail

Recommended text color: #ffffff

Use purple in code

CSS color: #800080;
SCSS $color: #800080;
Tailwind bg-[#800080]
Swift UIColor(red: 0.502, green: 0.000, blue: 0.502, alpha: 1)
Android Color.parseColor("#800080")
Flutter Color(0xFF800080)

Colors similar to purple

Browse all Pink colors →

What is the HSL code for purple?

The CSS color purple in HSL format is hsl(300, 100%, 25.1%). Use this value directly in CSS, SVG, and most design tools.

How do I use purple in CSS?

To apply purple in CSS:

  • Text color: color: hsl(300, 100%, 25.1%);
  • Background: background-color: hsl(300, 100%, 25.1%);
  • Border: border-color: hsl(300, 100%, 25.1%);

What are all the color format values for purple?

FormatValue
HEX#800080
RGBrgb(128, 0, 128)
HSLhsl(300, 100%, 25.1%)
CMYKcmyk(0%, 100%, 0%, 49.8%)

How do I convert purple to HSL?

Select purple from the color name list in our color converter. The HSL value — hsl(300, 100%, 25.1%) — appears instantly alongside HEX, RGB, HSL and CMYK.

What color family does purple belong to?

purple belongs to the pink color family. It is a dark, vivid color with HSL values: hue 300°, saturation 100%, lightness 25.1%.

How do I create lighter and darker shades of purple?

Lighter variant (lightness 40.1%): #cd00cd. Darker variant (lightness 10.100000000000001%): #340034. These values are computed by adjusting HSL lightness ±15% while keeping the same hue and saturation.

What is HSL used for?

HSL describes colors by hue (0–360°), saturation (0–100%) and lightness (0–100%). It is more intuitive for designers — easy to create lighter, darker or less saturated variants of any color.