HSL(306, 79%, 31%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(306,79%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(306, 79%, 31%) | color: hsl(306, 79%, 31%) | |
| HEX | #8D1181 | color: #8D1181 | |
| RGB | rgb(141, 17, 129) | color: rgb(141, 17, 129) | |
| CMYK | cmyk(0%, 88%, 9%, 45%) | — | |
| HSV | hsv(306, 88%, 55%) | — | |
| HWB | hwb(306 7% 45%) | color: hwb(306 7% 45%) | |
| OKLCH | oklch(0.4501 0.1908 333.01) | color: oklch(0.4501 0.1908 333.01) | |
| Lab | lab(33.24 58.83 -31.46) | color: lab(33.24 58.83 -31.46) | |
| LCH | lch(33.24 66.71 331.86) | color: lch(33.24 66.71 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: white
Color Blindness Simulation
Protanopia (Red-blind)
#575666 — rgb(87, 86, 102)
Deuteranopia (Green-blind)
#5F685F — rgb(95, 104, 95)
Tritanopia (Blue-blind)
#87514C — rgb(135, 81, 76)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(306, 79%, 31%);
text
color: hsl(306, 79%, 31%);
border
border: 2px solid hsl(306, 79%, 31%);
gradient light
background: linear-gradient(to right, hsl(306, 79%, 51%), hsl(306, 79%, 31%));
gradient dark
background: linear-gradient(to right, hsl(306, 79%, 31%), hsl(306, 79%, 11%))
hex
background-color: #8D1181;
tailwind
bg-[hsl(306,79%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(306, 79%, 31%, 0.4);
css variable
--color-primary: hsl(306, 79%, 31%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(306, 79%, 31%)?
HEX: #8D1181 | RGB: rgb(141, 17, 129) | CMYK: 0%, 88%, 9%, 45% | HSV: 306°, 88%, 55%. Copy any format from the conversion table above.
What colors go well with #8D1181?
The complementary color is HSL(126, 79%, 31%). For a triadic harmony, use hues 306°, 66°, and 186°. For analogous combinations, try hues 276° and 336°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(306, 79%, 31%) in CSS?
As HSL: color: hsl(306, 79%, 31%); — As HEX: color: #8D1181; — As RGB: color: rgb(141, 17, 129); — Tailwind CSS: bg-[hsl(306,79%,31%)] — CSS variable: --color-primary: hsl(306, 79%, 31%);