HSL(295, 70%, 40%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(295,70%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(295, 70%, 40%) | color: hsl(295, 70%, 40%) | |
| HEX | #A21FAD | color: #A21FAD | |
| RGB | rgb(162, 31, 173) | color: rgb(162, 31, 173) | |
| CMYK | cmyk(6%, 82%, 0%, 32%) | — | |
| HSV | hsv(295, 82%, 68%) | — | |
| HWB | hwb(295 12% 32%) | color: hwb(295 12% 32%) | |
| OKLCH | oklch(0.5184 0.2221 324.52) | color: oklch(0.5184 0.2221 324.52) | |
| Lab | lab(40.7 66.86 -46.16) | color: lab(40.7 66.86 -46.16) | |
| LCH | lch(40.7 81.25 325.38) | color: lch(40.7 81.25 325.38) |
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)
#69688B — rgb(105, 104, 139)
Deuteranopia (Green-blind)
#717B82 — rgb(113, 123, 130)
Tritanopia (Blue-blind)
#9B706A — rgb(155, 112, 106)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(295, 70%, 40%);
text
color: hsl(295, 70%, 40%);
border
border: 2px solid hsl(295, 70%, 40%);
gradient light
background: linear-gradient(to right, hsl(295, 70%, 60%), hsl(295, 70%, 40%));
gradient dark
background: linear-gradient(to right, hsl(295, 70%, 40%), hsl(295, 70%, 20%))
hex
background-color: #A21FAD;
tailwind
bg-[hsl(295,70%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(295, 70%, 40%, 0.4);
css variable
--color-primary: hsl(295, 70%, 40%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(295, 70%, 40%)?
HEX: #A21FAD | RGB: rgb(162, 31, 173) | CMYK: 6%, 82%, 0%, 32% | HSV: 295°, 82%, 68%. Copy any format from the conversion table above.
What colors go well with #A21FAD?
The complementary color is HSL(115, 70%, 40%). For a triadic harmony, use hues 295°, 55°, and 175°. For analogous combinations, try hues 265° and 325°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(295, 70%, 40%) in CSS?
As HSL: color: hsl(295, 70%, 40%); — As HEX: color: #A21FAD; — As RGB: color: rgb(162, 31, 173); — Tailwind CSS: bg-[hsl(295,70%,40%)] — CSS variable: --color-primary: hsl(295, 70%, 40%);