HSL(297, 34%, 52%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(297,34%,52%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(297, 34%, 52%) | color: hsl(297, 34%, 52%) | |
| HEX | #AA5BAE | color: #AA5BAE | |
| RGB | rgb(170, 91, 174) | color: rgb(170, 91, 174) | |
| CMYK | cmyk(2%, 48%, 0%, 32%) | — | |
| HSV | hsv(297, 48%, 68%) | — | |
| HWB | hwb(297 35% 32%) | color: hwb(297 35% 32%) | |
| OKLCH | oklch(0.5942 0.1488 325.46) | color: oklch(0.5942 0.1488 325.46) | |
| Lab | lab(50.79 44.65 -30.72) | color: lab(50.79 44.65 -30.72) | |
| LCH | lch(50.79 54.2 325.47) | color: lch(50.79 54.2 325.47) |
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)
#88879A — rgb(136, 135, 154)
Deuteranopia (Green-blind)
#8C9295 — rgb(140, 146, 149)
Tritanopia (Blue-blind)
#A68A87 — rgb(166, 138, 135)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(297, 34%, 52%);
text
color: hsl(297, 34%, 52%);
border
border: 2px solid hsl(297, 34%, 52%);
gradient light
background: linear-gradient(to right, hsl(297, 34%, 72%), hsl(297, 34%, 52%));
gradient dark
background: linear-gradient(to right, hsl(297, 34%, 52%), hsl(297, 34%, 32%))
hex
background-color: #AA5BAE;
tailwind
bg-[hsl(297,34%,52%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(297, 34%, 52%, 0.4);
css variable
--color-primary: hsl(297, 34%, 52%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(297, 34%, 52%)?
HEX: #AA5BAE | RGB: rgb(170, 91, 174) | CMYK: 2%, 48%, 0%, 32% | HSV: 297°, 48%, 68%. Copy any format from the conversion table above.
What colors go well with #AA5BAE?
The complementary color is HSL(117, 34%, 52%). For a triadic harmony, use hues 297°, 57°, and 177°. For analogous combinations, try hues 267° and 327°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(297, 34%, 52%) in CSS?
As HSL: color: hsl(297, 34%, 52%); — As HEX: color: #AA5BAE; — As RGB: color: rgb(170, 91, 174); — Tailwind CSS: bg-[hsl(297,34%,52%)] — CSS variable: --color-primary: hsl(297, 34%, 52%);