HSL(296, 20%, 46%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(296,20%,46%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(296, 20%, 46%) | color: hsl(296, 20%, 46%) | |
| HEX | #8A5E8D | color: #8A5E8D | |
| RGB | rgb(138, 94, 141) | color: rgb(138, 94, 141) | |
| CMYK | cmyk(2%, 33%, 0%, 45%) | — | |
| HSV | hsv(296, 33%, 55%) | — | |
| HWB | hwb(296 37% 45%) | color: hwb(296 37% 45%) | |
| OKLCH | oklch(0.5457 0.0881 324.51) | color: oklch(0.5457 0.0881 324.51) | |
| Lab | lab(46.09 26.23 -18.82) | color: lab(46.09 26.23 -18.82) | |
| LCH | lch(46.09 32.28 324.34) | color: lch(46.09 32.28 324.34) |
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)
#777782 — rgb(119, 119, 130)
Deuteranopia (Green-blind)
#7A7D7F — rgb(122, 125, 127)
Tritanopia (Blue-blind)
#887977 — rgb(136, 121, 119)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(296, 20%, 46%);
text
color: hsl(296, 20%, 46%);
border
border: 2px solid hsl(296, 20%, 46%);
gradient light
background: linear-gradient(to right, hsl(296, 20%, 66%), hsl(296, 20%, 46%));
gradient dark
background: linear-gradient(to right, hsl(296, 20%, 46%), hsl(296, 20%, 26%))
hex
background-color: #8A5E8D;
tailwind
bg-[hsl(296,20%,46%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(296, 20%, 46%, 0.4);
css variable
--color-primary: hsl(296, 20%, 46%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(296, 20%, 46%)?
HEX: #8A5E8D | RGB: rgb(138, 94, 141) | CMYK: 2%, 33%, 0%, 45% | HSV: 296°, 33%, 55%. Copy any format from the conversion table above.
What colors go well with #8A5E8D?
The complementary color is HSL(116, 20%, 46%). 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, 20%, 46%) in CSS?
As HSL: color: hsl(296, 20%, 46%); — As HEX: color: #8A5E8D; — As RGB: color: rgb(138, 94, 141); — Tailwind CSS: bg-[hsl(296,20%,46%)] — CSS variable: --color-primary: hsl(296, 20%, 46%);