HSL(310, 50%, 41%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(310,50%,41%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(310, 50%, 41%) | color: hsl(310, 50%, 41%) | |
| HEX | #9D348B | color: #9D348B | |
| RGB | rgb(157, 52, 139) | color: rgb(157, 52, 139) | |
| CMYK | cmyk(0%, 67%, 11%, 38%) | — | |
| HSV | hsv(310, 67%, 62%) | — | |
| HWB | hwb(310 20% 38%) | color: hwb(310 20% 38%) | |
| OKLCH | oklch(0.5085 0.171 335.32) | color: oklch(0.5085 0.171 335.32) | |
| Lab | lab(40.39 53.29 -26.2) | color: lab(40.39 53.29 -26.2) | |
| LCH | lch(40.39 59.38 333.82) | color: lch(40.39 59.38 333.82) |
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)
#706F76 — rgb(112, 111, 118)
Deuteranopia (Green-blind)
#767E71 — rgb(118, 126, 113)
Tritanopia (Blue-blind)
#986562 — rgb(152, 101, 98)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(310, 50%, 41%);
text
color: hsl(310, 50%, 41%);
border
border: 2px solid hsl(310, 50%, 41%);
gradient light
background: linear-gradient(to right, hsl(310, 50%, 61%), hsl(310, 50%, 41%));
gradient dark
background: linear-gradient(to right, hsl(310, 50%, 41%), hsl(310, 50%, 21%))
hex
background-color: #9D348B;
tailwind
bg-[hsl(310,50%,41%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(310, 50%, 41%, 0.4);
css variable
--color-primary: hsl(310, 50%, 41%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(310, 50%, 41%)?
HEX: #9D348B | RGB: rgb(157, 52, 139) | CMYK: 0%, 67%, 11%, 38% | HSV: 310°, 67%, 62%. Copy any format from the conversion table above.
What colors go well with #9D348B?
The complementary color is HSL(130, 50%, 41%). For a triadic harmony, use hues 310°, 70°, and 190°. For analogous combinations, try hues 280° and 340°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(310, 50%, 41%) in CSS?
As HSL: color: hsl(310, 50%, 41%); — As HEX: color: #9D348B; — As RGB: color: rgb(157, 52, 139); — Tailwind CSS: bg-[hsl(310,50%,41%)] — CSS variable: --color-primary: hsl(310, 50%, 41%);