HSL(309, 40%, 50%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(309,40%,50%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(309, 40%, 50%) | color: hsl(309, 40%, 50%) | |
| HEX | #B34DA3 | color: #B34DA3 | |
| RGB | rgb(179, 77, 163) | color: rgb(179, 77, 163) | |
| CMYK | cmyk(0%, 57%, 9%, 30%) | — | |
| HSV | hsv(309, 57%, 70%) | — | |
| HWB | hwb(309 30% 30%) | color: hwb(309 30% 30%) | |
| OKLCH | oklch(0.5814 0.1678 333.97) | color: oklch(0.5814 0.1678 333.97) | |
| Lab | lab(48.93 52.24 -27.06) | color: lab(48.93 52.24 -27.06) | |
| LCH | lch(48.93 58.83 332.62) | color: lch(48.93 58.83 332.62) |
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)
#87868E — rgb(135, 134, 142)
Deuteranopia (Green-blind)
#8D9489 — rgb(141, 148, 137)
Tritanopia (Blue-blind)
#AE7E7A — rgb(174, 126, 122)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(309, 40%, 50%);
text
color: hsl(309, 40%, 50%);
border
border: 2px solid hsl(309, 40%, 50%);
gradient light
background: linear-gradient(to right, hsl(309, 40%, 70%), hsl(309, 40%, 50%));
gradient dark
background: linear-gradient(to right, hsl(309, 40%, 50%), hsl(309, 40%, 30%))
hex
background-color: #B34DA3;
tailwind
bg-[hsl(309,40%,50%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(309, 40%, 50%, 0.4);
css variable
--color-primary: hsl(309, 40%, 50%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(309, 40%, 50%)?
HEX: #B34DA3 | RGB: rgb(179, 77, 163) | CMYK: 0%, 57%, 9%, 30% | HSV: 309°, 57%, 70%. Copy any format from the conversion table above.
What colors go well with #B34DA3?
The complementary color is HSL(129, 40%, 50%). For a triadic harmony, use hues 309°, 69°, and 189°. For analogous combinations, try hues 279° and 339°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(309, 40%, 50%) in CSS?
As HSL: color: hsl(309, 40%, 50%); — As HEX: color: #B34DA3; — As RGB: color: rgb(179, 77, 163); — Tailwind CSS: bg-[hsl(309,40%,50%)] — CSS variable: --color-primary: hsl(309, 40%, 50%);