HSL(296, 70%, 23%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(296,70%,23%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(296, 70%, 23%) | color: hsl(296, 70%, 23%) | |
| HEX | #5E1264 | color: #5E1264 | |
| RGB | rgb(94, 18, 100) | color: rgb(94, 18, 100) | |
| CMYK | cmyk(6%, 82%, 0%, 61%) | — | |
| HSV | hsv(296, 82%, 39%) | — | |
| HWB | hwb(296 7% 61%) | color: hwb(296 7% 61%) | |
| OKLCH | oklch(0.3535 0.1455 324.77) | color: oklch(0.3535 0.1455 324.77) | |
| Lab | lab(22.77 43.79 -30.1) | color: lab(22.77 43.79 -30.1) | |
| LCH | lch(22.77 53.14 325.5) | color: lch(22.77 53.14 325.5) |
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)
#3D3C50 — rgb(61, 60, 80)
Deuteranopia (Green-blind)
#42474B — rgb(66, 71, 75)
Tritanopia (Blue-blind)
#5A403D — rgb(90, 64, 61)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(296, 70%, 23%);
text
color: hsl(296, 70%, 23%);
border
border: 2px solid hsl(296, 70%, 23%);
gradient light
background: linear-gradient(to right, hsl(296, 70%, 43%), hsl(296, 70%, 23%));
gradient dark
background: linear-gradient(to right, hsl(296, 70%, 23%), hsl(296, 70%, 3%))
hex
background-color: #5E1264;
tailwind
bg-[hsl(296,70%,23%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(296, 70%, 23%, 0.4);
css variable
--color-primary: hsl(296, 70%, 23%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(296, 70%, 23%)?
HEX: #5E1264 | RGB: rgb(94, 18, 100) | CMYK: 6%, 82%, 0%, 61% | HSV: 296°, 82%, 39%. Copy any format from the conversion table above.
What colors go well with #5E1264?
The complementary color is HSL(116, 70%, 23%). 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, 70%, 23%) in CSS?
As HSL: color: hsl(296, 70%, 23%); — As HEX: color: #5E1264; — As RGB: color: rgb(94, 18, 100); — Tailwind CSS: bg-[hsl(296,70%,23%)] — CSS variable: --color-primary: hsl(296, 70%, 23%);