HSL(310, 40%, 50%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(310,40%,50%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(310, 40%, 50%) | color: hsl(310, 40%, 50%) | |
| HEX | #B34DA2 | color: #B34DA2 | |
| RGB | rgb(179, 77, 162) | color: rgb(179, 77, 162) | |
| CMYK | cmyk(0%, 57%, 9%, 30%) | — | |
| HSV | hsv(310, 57%, 70%) | — | |
| HWB | hwb(310 30% 30%) | color: hwb(310 30% 30%) | |
| OKLCH | oklch(0.5809 0.167 334.41) | color: oklch(0.5809 0.167 334.41) | |
| Lab | lab(48.89 52.08 -26.54) | color: lab(48.89 52.08 -26.54) | |
| LCH | lch(48.89 58.45 333) | color: lch(48.89 58.45 333) |
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)
#87868D — rgb(135, 134, 141)
Deuteranopia (Green-blind)
#8D9489 — rgb(141, 148, 137)
Tritanopia (Blue-blind)
#AE7D7A — rgb(174, 125, 122)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(310, 40%, 50%);
text
color: hsl(310, 40%, 50%);
border
border: 2px solid hsl(310, 40%, 50%);
gradient light
background: linear-gradient(to right, hsl(310, 40%, 70%), hsl(310, 40%, 50%));
gradient dark
background: linear-gradient(to right, hsl(310, 40%, 50%), hsl(310, 40%, 30%))
hex
background-color: #B34DA2;
tailwind
bg-[hsl(310,40%,50%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(310, 40%, 50%, 0.4);
css variable
--color-primary: hsl(310, 40%, 50%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(310, 40%, 50%)?
HEX: #B34DA2 | RGB: rgb(179, 77, 162) | CMYK: 0%, 57%, 9%, 30% | HSV: 310°, 57%, 70%. Copy any format from the conversion table above.
What colors go well with #B34DA2?
The complementary color is HSL(130, 40%, 50%). 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, 40%, 50%) in CSS?
As HSL: color: hsl(310, 40%, 50%); — As HEX: color: #B34DA2; — As RGB: color: rgb(179, 77, 162); — Tailwind CSS: bg-[hsl(310,40%,50%)] — CSS variable: --color-primary: hsl(310, 40%, 50%);