HSL(296, 40%, 24%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(296,40%,24%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(296, 40%, 24%) | color: hsl(296, 40%, 24%) | |
| HEX | #522556 | color: #522556 | |
| RGB | rgb(82, 37, 86) | color: rgb(82, 37, 86) | |
| CMYK | cmyk(5%, 57%, 0%, 66%) | — | |
| HSV | hsv(295, 57%, 34%) | — | |
| HWB | hwb(295 15% 66%) | color: hwb(295 15% 66%) | |
| OKLCH | oklch(0.348 0.0977 324.25) | color: oklch(0.348 0.0977 324.25) | |
| Lab | lab(22.96 29.15 -20.67) | color: lab(22.96 29.15 -20.67) | |
| LCH | lch(22.96 35.73 324.66) | color: lch(22.96 35.73 324.66) |
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)
#3F3E4A — rgb(63, 62, 74)
Deuteranopia (Green-blind)
#414547 — rgb(65, 69, 71)
Tritanopia (Blue-blind)
#50413F — rgb(80, 65, 63)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(296, 40%, 24%);
text
color: hsl(296, 40%, 24%);
border
border: 2px solid hsl(296, 40%, 24%);
gradient light
background: linear-gradient(to right, hsl(296, 40%, 44%), hsl(296, 40%, 24%));
gradient dark
background: linear-gradient(to right, hsl(296, 40%, 24%), hsl(296, 40%, 4%))
hex
background-color: #522556;
tailwind
bg-[hsl(296,40%,24%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(296, 40%, 24%, 0.4);
css variable
--color-primary: hsl(296, 40%, 24%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(296, 40%, 24%)?
HEX: #522556 | RGB: rgb(82, 37, 86) | CMYK: 5%, 57%, 0%, 66% | HSV: 295°, 57%, 34%. Copy any format from the conversion table above.
What colors go well with #522556?
The complementary color is HSL(116, 40%, 24%). For a triadic harmony, use hues 296°, 56°, and 176°. For analogous combinations, try hues 266° and 326°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(296, 40%, 24%) in CSS?
As HSL: color: hsl(296, 40%, 24%); — As HEX: color: #522556; — As RGB: color: rgb(82, 37, 86); — Tailwind CSS: bg-[hsl(296,40%,24%)] — CSS variable: --color-primary: hsl(296, 40%, 24%);