HSL(294, 70%, 40%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(294,70%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(294, 70%, 40%) | color: hsl(294, 70%, 40%) | |
| HEX | #9F1FAD | color: #9F1FAD | |
| RGB | rgb(159, 31, 173) | color: rgb(159, 31, 173) | |
| CMYK | cmyk(8%, 82%, 0%, 32%) | — | |
| HSV | hsv(294, 82%, 68%) | — | |
| HWB | hwb(294 12% 32%) | color: hwb(294 12% 32%) | |
| OKLCH | oklch(0.5139 0.2209 323.48) | color: oklch(0.5139 0.2209 323.48) | |
| Lab | lab(40.2 66.3 -47) | color: lab(40.2 66.3 -47) | |
| LCH | lch(40.2 81.27 324.67) | color: lch(40.2 81.27 324.67) |
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)
#68668B — rgb(104, 102, 139)
Deuteranopia (Green-blind)
#6F7982 — rgb(111, 121, 130)
Tritanopia (Blue-blind)
#99706A — rgb(153, 112, 106)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(294, 70%, 40%);
text
color: hsl(294, 70%, 40%);
border
border: 2px solid hsl(294, 70%, 40%);
gradient light
background: linear-gradient(to right, hsl(294, 70%, 60%), hsl(294, 70%, 40%));
gradient dark
background: linear-gradient(to right, hsl(294, 70%, 40%), hsl(294, 70%, 20%))
hex
background-color: #9F1FAD;
tailwind
bg-[hsl(294,70%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(294, 70%, 40%, 0.4);
css variable
--color-primary: hsl(294, 70%, 40%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(294, 70%, 40%)?
HEX: #9F1FAD | RGB: rgb(159, 31, 173) | CMYK: 8%, 82%, 0%, 32% | HSV: 294°, 82%, 68%. Copy any format from the conversion table above.
What colors go well with #9F1FAD?
The complementary color is HSL(114, 70%, 40%). For a triadic harmony, use hues 294°, 54°, and 174°. For analogous combinations, try hues 264° and 324°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(294, 70%, 40%) in CSS?
As HSL: color: hsl(294, 70%, 40%); — As HEX: color: #9F1FAD; — As RGB: color: rgb(159, 31, 173); — Tailwind CSS: bg-[hsl(294,70%,40%)] — CSS variable: --color-primary: hsl(294, 70%, 40%);