HSL(312, 20%, 59%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(312,20%,59%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(312, 20%, 59%) | color: hsl(312, 20%, 59%) | |
| HEX | #AB82A3 | color: #AB82A3 | |
| RGB | rgb(171, 130, 163) | color: rgb(171, 130, 163) | |
| CMYK | cmyk(0%, 24%, 5%, 33%) | — | |
| HSV | hsv(312, 24%, 67%) | — | |
| HWB | hwb(312 51% 33%) | color: hwb(312 51% 33%) | |
| OKLCH | oklch(0.6568 0.0678 333.26) | color: oklch(0.6568 0.0678 333.26) | |
| Lab | lab(59.22 21.37 -11.43) | color: lab(59.22 21.37 -11.43) | |
| LCH | lch(59.22 24.23 331.86) | color: lch(59.22 24.23 331.86) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#99999B — rgb(153, 153, 155)
Deuteranopia (Green-blind)
#9C9F99 — rgb(156, 159, 153)
Tritanopia (Blue-blind)
#A99593 — rgb(169, 149, 147)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(312, 20%, 59%);
text
color: hsl(312, 20%, 59%);
border
border: 2px solid hsl(312, 20%, 59%);
gradient light
background: linear-gradient(to right, hsl(312, 20%, 79%), hsl(312, 20%, 59%));
gradient dark
background: linear-gradient(to right, hsl(312, 20%, 59%), hsl(312, 20%, 39%))
hex
background-color: #AB82A3;
tailwind
bg-[hsl(312,20%,59%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(312, 20%, 59%, 0.4);
css variable
--color-primary: hsl(312, 20%, 59%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(312, 20%, 59%)?
HEX: #AB82A3 | RGB: rgb(171, 130, 163) | CMYK: 0%, 24%, 5%, 33% | HSV: 312°, 24%, 67%. Copy any format from the conversion table above.
What colors go well with #AB82A3?
The complementary color is HSL(132, 20%, 59%). For a triadic harmony, use hues 312°, 72°, and 192°. For analogous combinations, try hues 282° and 342°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(312, 20%, 59%) in CSS?
As HSL: color: hsl(312, 20%, 59%); — As HEX: color: #AB82A3; — As RGB: color: rgb(171, 130, 163); — Tailwind CSS: bg-[hsl(312,20%,59%)] — CSS variable: --color-primary: hsl(312, 20%, 59%);