HSL(311, 60%, 20%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(311,60%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(311, 60%, 20%) | color: hsl(311, 60%, 20%) | |
| HEX | #521446 | color: #521446 | |
| RGB | rgb(82, 20, 70) | color: rgb(82, 20, 70) | |
| CMYK | cmyk(0%, 76%, 15%, 68%) | — | |
| HSV | hsv(312, 76%, 32%) | — | |
| HWB | hwb(312 8% 68%) | color: hwb(312 8% 68%) | |
| OKLCH | oklch(0.3159 0.1106 336.66) | color: oklch(0.3159 0.1106 336.66) | |
| Lab | lab(18.96 34.59 -16.12) | color: lab(18.96 34.59 -16.12) | |
| LCH | lch(18.96 38.16 335.01) | color: lch(18.96 38.16 335.01) |
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)
#37373A — rgb(55, 55, 58)
Deuteranopia (Green-blind)
#3B3F37 — rgb(59, 63, 55)
Tritanopia (Blue-blind)
#4F302E — rgb(79, 48, 46)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(311, 60%, 20%);
text
color: hsl(311, 60%, 20%);
border
border: 2px solid hsl(311, 60%, 20%);
gradient light
background: linear-gradient(to right, hsl(311, 60%, 40%), hsl(311, 60%, 20%));
gradient dark
background: linear-gradient(to right, hsl(311, 60%, 20%), hsl(311, 60%, 0%))
hex
background-color: #521446;
tailwind
bg-[hsl(311,60%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(311, 60%, 20%, 0.4);
css variable
--color-primary: hsl(311, 60%, 20%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(311, 60%, 20%)?
HEX: #521446 | RGB: rgb(82, 20, 70) | CMYK: 0%, 76%, 15%, 68% | HSV: 312°, 76%, 32%. Copy any format from the conversion table above.
What colors go well with #521446?
The complementary color is HSL(131, 60%, 20%). For a triadic harmony, use hues 311°, 71°, and 191°. For analogous combinations, try hues 281° and 341°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(311, 60%, 20%) in CSS?
As HSL: color: hsl(311, 60%, 20%); — As HEX: color: #521446; — As RGB: color: rgb(82, 20, 70); — Tailwind CSS: bg-[hsl(311,60%,20%)] — CSS variable: --color-primary: hsl(311, 60%, 20%);