HSL(296, 96%, 36%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(296,96%,36%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(296, 96%, 36%) | color: hsl(296, 96%, 36%) | |
| HEX | #A804B4 | color: #A804B4 | |
| RGB | rgb(168, 4, 180) | color: rgb(168, 4, 180) | |
| CMYK | cmyk(7%, 98%, 0%, 29%) | — | |
| HSV | hsv(296, 98%, 71%) | — | |
| HWB | hwb(296 1% 29%) | color: hwb(296 1% 29%) | |
| OKLCH | oklch(0.5222 0.2428 324.67) | color: oklch(0.5222 0.2428 324.67) | |
| Lab | lab(40.75 73.29 -50.18) | color: lab(40.75 73.29 -50.18) | |
| LCH | lch(40.75 88.82 325.6) | color: lch(40.75 88.82 325.6) |
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)
#616089 — rgb(97, 96, 137)
Deuteranopia (Green-blind)
#6B777F — rgb(107, 119, 127)
Tritanopia (Blue-blind)
#A06860 — rgb(160, 104, 96)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(296, 96%, 36%);
text
color: hsl(296, 96%, 36%);
border
border: 2px solid hsl(296, 96%, 36%);
gradient light
background: linear-gradient(to right, hsl(296, 96%, 56%), hsl(296, 96%, 36%));
gradient dark
background: linear-gradient(to right, hsl(296, 96%, 36%), hsl(296, 96%, 16%))
hex
background-color: #A804B4;
tailwind
bg-[hsl(296,96%,36%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(296, 96%, 36%, 0.4);
css variable
--color-primary: hsl(296, 96%, 36%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(296, 96%, 36%)?
HEX: #A804B4 | RGB: rgb(168, 4, 180) | CMYK: 7%, 98%, 0%, 29% | HSV: 296°, 98%, 71%. Copy any format from the conversion table above.
What colors go well with #A804B4?
The complementary color is HSL(116, 96%, 36%). 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, 96%, 36%) in CSS?
As HSL: color: hsl(296, 96%, 36%); — As HEX: color: #A804B4; — As RGB: color: rgb(168, 4, 180); — Tailwind CSS: bg-[hsl(296,96%,36%)] — CSS variable: --color-primary: hsl(296, 96%, 36%);