HSL(305, 52%, 40%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(305,52%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(305, 52%, 40%) | color: hsl(305, 52%, 40%) | |
| HEX | #9B3192 | color: #9B3192 | |
| RGB | rgb(155, 49, 146) | color: rgb(155, 49, 146) | |
| CMYK | cmyk(0%, 68%, 6%, 39%) | — | |
| HSV | hsv(305, 68%, 61%) | — | |
| HWB | hwb(305 20% 39%) | color: hwb(305 20% 39%) | |
| OKLCH | oklch(0.5061 0.1791 331.48) | color: oklch(0.5061 0.1791 331.48) | |
| Lab | lab(39.99 55.11 -31.13) | color: lab(39.99 55.11 -31.13) | |
| LCH | lch(39.99 63.29 330.54) | color: lch(39.99 63.29 330.54) |
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)
#6D6C7B — rgb(109, 108, 123)
Deuteranopia (Green-blind)
#737B75 — rgb(115, 123, 117)
Tritanopia (Blue-blind)
#966864 — rgb(150, 104, 100)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(305, 52%, 40%);
text
color: hsl(305, 52%, 40%);
border
border: 2px solid hsl(305, 52%, 40%);
gradient light
background: linear-gradient(to right, hsl(305, 52%, 60%), hsl(305, 52%, 40%));
gradient dark
background: linear-gradient(to right, hsl(305, 52%, 40%), hsl(305, 52%, 20%))
hex
background-color: #9B3192;
tailwind
bg-[hsl(305,52%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(305, 52%, 40%, 0.4);
css variable
--color-primary: hsl(305, 52%, 40%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(305, 52%, 40%)?
HEX: #9B3192 | RGB: rgb(155, 49, 146) | CMYK: 0%, 68%, 6%, 39% | HSV: 305°, 68%, 61%. Copy any format from the conversion table above.
What colors go well with #9B3192?
The complementary color is HSL(125, 52%, 40%). For a triadic harmony, use hues 305°, 65°, and 185°. For analogous combinations, try hues 275° and 335°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(305, 52%, 40%) in CSS?
As HSL: color: hsl(305, 52%, 40%); — As HEX: color: #9B3192; — As RGB: color: rgb(155, 49, 146); — Tailwind CSS: bg-[hsl(305,52%,40%)] — CSS variable: --color-primary: hsl(305, 52%, 40%);