HSL(290, 70%, 42%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(290,70%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(290, 70%, 42%) | color: hsl(290, 70%, 42%) | |
| HEX | #9D20B6 | color: #9D20B6 | |
| RGB | rgb(157, 32, 182) | color: rgb(157, 32, 182) | |
| CMYK | cmyk(14%, 82%, 0%, 29%) | — | |
| HSV | hsv(290, 82%, 71%) | — | |
| HWB | hwb(290 13% 29%) | color: hwb(290 13% 29%) | |
| OKLCH | oklch(0.5175 0.2263 319.98) | color: oklch(0.5175 0.2263 319.98) | |
| Lab | lab(40.54 67.25 -51.8) | color: lab(40.54 67.25 -51.8) | |
| LCH | lch(40.54 84.89 322.39) | color: lch(40.54 84.89 322.39) |
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)
#676692 — rgb(103, 102, 146)
Deuteranopia (Green-blind)
#6E7889 — rgb(110, 120, 137)
Tritanopia (Blue-blind)
#97756F — rgb(151, 117, 111)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(290, 70%, 42%);
text
color: hsl(290, 70%, 42%);
border
border: 2px solid hsl(290, 70%, 42%);
gradient light
background: linear-gradient(to right, hsl(290, 70%, 62%), hsl(290, 70%, 42%));
gradient dark
background: linear-gradient(to right, hsl(290, 70%, 42%), hsl(290, 70%, 22%))
hex
background-color: #9D20B6;
tailwind
bg-[hsl(290,70%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(290, 70%, 42%, 0.4);
css variable
--color-primary: hsl(290, 70%, 42%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(290, 70%, 42%)?
HEX: #9D20B6 | RGB: rgb(157, 32, 182) | CMYK: 14%, 82%, 0%, 29% | HSV: 290°, 82%, 71%. Copy any format from the conversion table above.
What colors go well with #9D20B6?
The complementary color is HSL(110, 70%, 42%). 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, 70%, 42%) in CSS?
As HSL: color: hsl(290, 70%, 42%); — As HEX: color: #9D20B6; — As RGB: color: rgb(157, 32, 182); — Tailwind CSS: bg-[hsl(290,70%,42%)] — CSS variable: --color-primary: hsl(290, 70%, 42%);