HSL(290, 20%, 49%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(290,20%,49%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(290, 20%, 49%) | color: hsl(290, 20%, 49%) | |
| HEX | #8E6496 | color: #8E6496 | |
| RGB | rgb(142, 100, 150) | color: rgb(142, 100, 150) | |
| CMYK | cmyk(5%, 33%, 0%, 41%) | — | |
| HSV | hsv(290, 33%, 59%) | — | |
| HWB | hwb(290 40% 41%) | color: hwb(290 40% 41%) | |
| OKLCH | oklch(0.565 0.0895 320.99) | color: oklch(0.565 0.0895 320.99) | |
| Lab | lab(48.35 25.96 -20.67) | color: lab(48.35 25.96 -20.67) | |
| LCH | lch(48.35 33.18 321.47) | color: lch(48.35 33.18 321.47) |
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)
#7C7B8A — rgb(124, 123, 138)
Deuteranopia (Green-blind)
#7E8187 — rgb(126, 129, 135)
Tritanopia (Blue-blind)
#8C807E — rgb(140, 128, 126)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(290, 20%, 49%);
text
color: hsl(290, 20%, 49%);
border
border: 2px solid hsl(290, 20%, 49%);
gradient light
background: linear-gradient(to right, hsl(290, 20%, 69%), hsl(290, 20%, 49%));
gradient dark
background: linear-gradient(to right, hsl(290, 20%, 49%), hsl(290, 20%, 29%))
hex
background-color: #8E6496;
tailwind
bg-[hsl(290,20%,49%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(290, 20%, 49%, 0.4);
css variable
--color-primary: hsl(290, 20%, 49%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(290, 20%, 49%)?
HEX: #8E6496 | RGB: rgb(142, 100, 150) | CMYK: 5%, 33%, 0%, 41% | HSV: 290°, 33%, 59%. Copy any format from the conversion table above.
What colors go well with #8E6496?
The complementary color is HSL(110, 20%, 49%). For a triadic harmony, use hues 290°, 50°, and 170°. For analogous combinations, try hues 260° and 320°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(290, 20%, 49%) in CSS?
As HSL: color: hsl(290, 20%, 49%); — As HEX: color: #8E6496; — As RGB: color: rgb(142, 100, 150); — Tailwind CSS: bg-[hsl(290,20%,49%)] — CSS variable: --color-primary: hsl(290, 20%, 49%);