HSL(290, 60%, 48%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(290,60%,48%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(290, 60%, 48%) | color: hsl(290, 60%, 48%) | |
| HEX | #AB31C4 | color: #AB31C4 | |
| RGB | rgb(171, 49, 196) | color: rgb(171, 49, 196) | |
| CMYK | cmyk(13%, 75%, 0%, 23%) | — | |
| HSV | hsv(290, 75%, 77%) | — | |
| HWB | hwb(290 19% 23%) | color: hwb(290 19% 23%) | |
| OKLCH | oklch(0.5592 0.2276 320.12) | color: oklch(0.5592 0.2276 320.12) | |
| Lab | lab(45.42 67.39 -52.04) | color: lab(45.42 67.39 -52.04) | |
| LCH | lch(45.42 85.14 322.32) | color: lch(45.42 85.14 322.32) |
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)
#7675A0 — rgb(118, 117, 160)
Deuteranopia (Green-blind)
#7D8698 — rgb(125, 134, 152)
Tritanopia (Blue-blind)
#A5847E — rgb(165, 132, 126)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(290, 60%, 48%);
text
color: hsl(290, 60%, 48%);
border
border: 2px solid hsl(290, 60%, 48%);
gradient light
background: linear-gradient(to right, hsl(290, 60%, 68%), hsl(290, 60%, 48%));
gradient dark
background: linear-gradient(to right, hsl(290, 60%, 48%), hsl(290, 60%, 28%))
hex
background-color: #AB31C4;
tailwind
bg-[hsl(290,60%,48%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(290, 60%, 48%, 0.4);
css variable
--color-primary: hsl(290, 60%, 48%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(290, 60%, 48%)?
HEX: #AB31C4 | RGB: rgb(171, 49, 196) | CMYK: 13%, 75%, 0%, 23% | HSV: 290°, 75%, 77%. Copy any format from the conversion table above.
What colors go well with #AB31C4?
The complementary color is HSL(110, 60%, 48%). 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, 60%, 48%) in CSS?
As HSL: color: hsl(290, 60%, 48%); — As HEX: color: #AB31C4; — As RGB: color: rgb(171, 49, 196); — Tailwind CSS: bg-[hsl(290,60%,48%)] — CSS variable: --color-primary: hsl(290, 60%, 48%);