HSL(291, 59%, 41%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(291,59%,41%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(291, 59%, 41%) | color: hsl(291, 59%, 41%) | |
| HEX | #942BA6 | color: #942BA6 | |
| RGB | rgb(148, 43, 166) | color: rgb(148, 43, 166) | |
| CMYK | cmyk(11%, 74%, 0%, 35%) | — | |
| HSV | hsv(291, 74%, 65%) | — | |
| HWB | hwb(291 17% 35%) | color: hwb(291 17% 35%) | |
| OKLCH | oklch(0.5019 0.1994 321.34) | color: oklch(0.5019 0.1994 321.34) | |
| Lab | lab(39.2 59.24 -44.51) | color: lab(39.2 59.24 -44.51) | |
| LCH | lch(39.2 74.1 323.08) | color: lch(39.2 74.1 323.08) |
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)
#676688 — rgb(103, 102, 136)
Deuteranopia (Green-blind)
#6D7581 — rgb(109, 117, 129)
Tritanopia (Blue-blind)
#8F716C — rgb(143, 113, 108)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(291, 59%, 41%);
text
color: hsl(291, 59%, 41%);
border
border: 2px solid hsl(291, 59%, 41%);
gradient light
background: linear-gradient(to right, hsl(291, 59%, 61%), hsl(291, 59%, 41%));
gradient dark
background: linear-gradient(to right, hsl(291, 59%, 41%), hsl(291, 59%, 21%))
hex
background-color: #942BA6;
tailwind
bg-[hsl(291,59%,41%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(291, 59%, 41%, 0.4);
css variable
--color-primary: hsl(291, 59%, 41%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(291, 59%, 41%)?
HEX: #942BA6 | RGB: rgb(148, 43, 166) | CMYK: 11%, 74%, 0%, 35% | HSV: 291°, 74%, 65%. Copy any format from the conversion table above.
What colors go well with #942BA6?
The complementary color is HSL(111, 59%, 41%). For a triadic harmony, use hues 291°, 51°, and 171°. For analogous combinations, try hues 261° and 321°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(291, 59%, 41%) in CSS?
As HSL: color: hsl(291, 59%, 41%); — As HEX: color: #942BA6; — As RGB: color: rgb(148, 43, 166); — Tailwind CSS: bg-[hsl(291,59%,41%)] — CSS variable: --color-primary: hsl(291, 59%, 41%);