HSL(297, 74%, 41%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(297,74%,41%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(297, 74%, 41%) | color: hsl(297, 74%, 41%) | |
| HEX | #AE1BB6 | color: #AE1BB6 | |
| RGB | rgb(174, 27, 182) | color: rgb(174, 27, 182) | |
| CMYK | cmyk(4%, 85%, 0%, 29%) | — | |
| HSV | hsv(297, 85%, 71%) | — | |
| HWB | hwb(297 11% 29%) | color: hwb(297 11% 29%) | |
| OKLCH | oklch(0.5404 0.2363 325.75) | color: oklch(0.5404 0.2363 325.75) | |
| Lab | lab(43.01 71.44 -47.68) | color: lab(43.01 71.44 -47.68) | |
| LCH | lch(43.01 85.89 326.28) | color: lch(43.01 85.89 326.28) |
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)
#6E6D90 — rgb(110, 109, 144)
Deuteranopia (Green-blind)
#778288 — rgb(119, 130, 136)
Tritanopia (Blue-blind)
#A7736C — rgb(167, 115, 108)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(297, 74%, 41%);
text
color: hsl(297, 74%, 41%);
border
border: 2px solid hsl(297, 74%, 41%);
gradient light
background: linear-gradient(to right, hsl(297, 74%, 61%), hsl(297, 74%, 41%));
gradient dark
background: linear-gradient(to right, hsl(297, 74%, 41%), hsl(297, 74%, 21%))
hex
background-color: #AE1BB6;
tailwind
bg-[hsl(297,74%,41%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(297, 74%, 41%, 0.4);
css variable
--color-primary: hsl(297, 74%, 41%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(297, 74%, 41%)?
HEX: #AE1BB6 | RGB: rgb(174, 27, 182) | CMYK: 4%, 85%, 0%, 29% | HSV: 297°, 85%, 71%. Copy any format from the conversion table above.
What colors go well with #AE1BB6?
The complementary color is HSL(117, 74%, 41%). 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, 74%, 41%) in CSS?
As HSL: color: hsl(297, 74%, 41%); — As HEX: color: #AE1BB6; — As RGB: color: rgb(174, 27, 182); — Tailwind CSS: bg-[hsl(297,74%,41%)] — CSS variable: --color-primary: hsl(297, 74%, 41%);