HSL(301, 72%, 39%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(301,72%,39%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(301, 72%, 39%) | color: hsl(301, 72%, 39%) | |
| HEX | #AB1CA9 | color: #AB1CA9 | |
| RGB | rgb(171, 28, 169) | color: rgb(171, 28, 169) | |
| CMYK | cmyk(0%, 84%, 1%, 33%) | — | |
| HSV | hsv(301, 84%, 67%) | — | |
| HWB | hwb(301 11% 33%) | color: hwb(301 11% 33%) | |
| OKLCH | oklch(0.5282 0.2251 328.86) | color: oklch(0.5282 0.2251 328.86) | |
| Lab | lab(41.77 68.62 -41.97) | color: lab(41.77 68.62 -41.97) | |
| LCH | lch(41.77 80.44 328.55) | color: lch(41.77 80.44 328.55) |
Color Theory
Accessibility (WCAG)
White text on color
Black text on color
Colored text
Contrast Ratios
AA Normal (4.5:1)
AA Large (3:1)
AAA Normal (7:1)
Best text on this color: white
Color Blindness Simulation
Protanopia (Red-blind)
#6D6C87 — rgb(109, 108, 135)
Deuteranopia (Green-blind)
#75807F — rgb(117, 128, 127)
Tritanopia (Blue-blind)
#A46C66 — rgb(164, 108, 102)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(301, 72%, 39%);
text
color: hsl(301, 72%, 39%);
border
border: 2px solid hsl(301, 72%, 39%);
gradient light
background: linear-gradient(to right, hsl(301, 72%, 59%), hsl(301, 72%, 39%));
gradient dark
background: linear-gradient(to right, hsl(301, 72%, 39%), hsl(301, 72%, 19%))
hex
background-color: #AB1CA9;
tailwind
bg-[hsl(301,72%,39%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(301, 72%, 39%, 0.4);
css variable
--color-primary: hsl(301, 72%, 39%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(301, 72%, 39%)?
HEX: #AB1CA9 | RGB: rgb(171, 28, 169) | CMYK: 0%, 84%, 1%, 33% | HSV: 301°, 84%, 67%. Copy any format from the conversion table above.
What colors go well with #AB1CA9?
The complementary color is HSL(121, 72%, 39%). For a triadic harmony, use hues 301°, 61°, and 181°. For analogous combinations, try hues 271° and 331°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(301, 72%, 39%) in CSS?
As HSL: color: hsl(301, 72%, 39%); — As HEX: color: #AB1CA9; — As RGB: color: rgb(171, 28, 169); — Tailwind CSS: bg-[hsl(301,72%,39%)] — CSS variable: --color-primary: hsl(301, 72%, 39%);