HSL(296, 62%, 40%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(296,62%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(296, 62%, 40%) | color: hsl(296, 62%, 40%) | |
| HEX | #9D27A5 | color: #9D27A5 | |
| RGB | rgb(157, 39, 165) | color: rgb(157, 39, 165) | |
| CMYK | cmyk(5%, 76%, 0%, 35%) | — | |
| HSV | hsv(296, 76%, 65%) | — | |
| HWB | hwb(296 16% 35%) | color: hwb(296 16% 35%) | |
| OKLCH | oklch(0.5113 0.2067 325.22) | color: oklch(0.5113 0.2067 325.22) | |
| Lab | lab(40.14 62.28 -42.33) | color: lab(40.14 62.28 -42.33) | |
| LCH | lch(40.14 75.3 325.8) | color: lch(40.14 75.3 325.8) |
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)
#6A6987 — rgb(106, 105, 135)
Deuteranopia (Green-blind)
#717A7F — rgb(113, 122, 127)
Tritanopia (Blue-blind)
#976E69 — rgb(151, 110, 105)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(296, 62%, 40%);
text
color: hsl(296, 62%, 40%);
border
border: 2px solid hsl(296, 62%, 40%);
gradient light
background: linear-gradient(to right, hsl(296, 62%, 60%), hsl(296, 62%, 40%));
gradient dark
background: linear-gradient(to right, hsl(296, 62%, 40%), hsl(296, 62%, 20%))
hex
background-color: #9D27A5;
tailwind
bg-[hsl(296,62%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(296, 62%, 40%, 0.4);
css variable
--color-primary: hsl(296, 62%, 40%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(296, 62%, 40%)?
HEX: #9D27A5 | RGB: rgb(157, 39, 165) | CMYK: 5%, 76%, 0%, 35% | HSV: 296°, 76%, 65%. Copy any format from the conversion table above.
What colors go well with #9D27A5?
The complementary color is HSL(116, 62%, 40%). For a triadic harmony, use hues 296°, 56°, and 176°. For analogous combinations, try hues 266° and 326°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(296, 62%, 40%) in CSS?
As HSL: color: hsl(296, 62%, 40%); — As HEX: color: #9D27A5; — As RGB: color: rgb(157, 39, 165); — Tailwind CSS: bg-[hsl(296,62%,40%)] — CSS variable: --color-primary: hsl(296, 62%, 40%);