HSL(287, 40%, 59%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(287,40%,59%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(287, 40%, 59%) | color: hsl(287, 40%, 59%) | |
| HEX | #AE6DC0 | color: #AE6DC0 | |
| RGB | rgb(174, 109, 192) | color: rgb(174, 109, 192) | |
| CMYK | cmyk(9%, 43%, 0%, 25%) | — | |
| HSV | hsv(287, 43%, 75%) | — | |
| HWB | hwb(287 43% 25%) | color: hwb(287 43% 25%) | |
| OKLCH | oklch(0.6355 0.1388 318.7) | color: oklch(0.6355 0.1388 318.7) | |
| Lab | lab(55.83 39.8 -33.22) | color: lab(55.83 39.8 -33.22) | |
| LCH | lch(55.83 51.84 320.15) | color: lch(55.83 51.84 320.15) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#9291AC — rgb(146, 145, 172)
Deuteranopia (Green-blind)
#969BA7 — rgb(150, 155, 167)
Tritanopia (Blue-blind)
#AB9C99 — rgb(171, 156, 153)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(287, 40%, 59%);
text
color: hsl(287, 40%, 59%);
border
border: 2px solid hsl(287, 40%, 59%);
gradient light
background: linear-gradient(to right, hsl(287, 40%, 79%), hsl(287, 40%, 59%));
gradient dark
background: linear-gradient(to right, hsl(287, 40%, 59%), hsl(287, 40%, 39%))
hex
background-color: #AE6DC0;
tailwind
bg-[hsl(287,40%,59%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(287, 40%, 59%, 0.4);
css variable
--color-primary: hsl(287, 40%, 59%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(287, 40%, 59%)?
HEX: #AE6DC0 | RGB: rgb(174, 109, 192) | CMYK: 9%, 43%, 0%, 25% | HSV: 287°, 43%, 75%. Copy any format from the conversion table above.
What colors go well with #AE6DC0?
The complementary color is HSL(107, 40%, 59%). For a triadic harmony, use hues 287°, 47°, and 167°. For analogous combinations, try hues 257° and 317°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(287, 40%, 59%) in CSS?
As HSL: color: hsl(287, 40%, 59%); — As HEX: color: #AE6DC0; — As RGB: color: rgb(174, 109, 192); — Tailwind CSS: bg-[hsl(287,40%,59%)] — CSS variable: --color-primary: hsl(287, 40%, 59%);