HSL(293, 57%, 26%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(293,57%,26%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(293, 57%, 26%) | color: hsl(293, 57%, 26%) | |
| HEX | #5F1D68 | color: #5F1D68 | |
| RGB | rgb(95, 29, 104) | color: rgb(95, 29, 104) | |
| CMYK | cmyk(9%, 72%, 0%, 59%) | — | |
| HSV | hsv(293, 72%, 41%) | — | |
| HWB | hwb(293 11% 59%) | color: hwb(293 11% 59%) | |
| OKLCH | oklch(0.3683 0.1364 322.67) | color: oklch(0.3683 0.1364 322.67) | |
| Lab | lab(24.68 40.62 -29.65) | color: lab(24.68 40.62 -29.65) | |
| LCH | lch(24.68 50.29 323.87) | color: lch(24.68 50.29 323.87) |
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)
#424256 — rgb(66, 66, 86)
Deuteranopia (Green-blind)
#464B52 — rgb(70, 75, 82)
Tritanopia (Blue-blind)
#5C4844 — rgb(92, 72, 68)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(293, 57%, 26%);
text
color: hsl(293, 57%, 26%);
border
border: 2px solid hsl(293, 57%, 26%);
gradient light
background: linear-gradient(to right, hsl(293, 57%, 46%), hsl(293, 57%, 26%));
gradient dark
background: linear-gradient(to right, hsl(293, 57%, 26%), hsl(293, 57%, 6%))
hex
background-color: #5F1D68;
tailwind
bg-[hsl(293,57%,26%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(293, 57%, 26%, 0.4);
css variable
--color-primary: hsl(293, 57%, 26%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(293, 57%, 26%)?
HEX: #5F1D68 | RGB: rgb(95, 29, 104) | CMYK: 9%, 72%, 0%, 59% | HSV: 293°, 72%, 41%. Copy any format from the conversion table above.
What colors go well with #5F1D68?
The complementary color is HSL(113, 57%, 26%). For a triadic harmony, use hues 293°, 53°, and 173°. For analogous combinations, try hues 263° and 323°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(293, 57%, 26%) in CSS?
As HSL: color: hsl(293, 57%, 26%); — As HEX: color: #5F1D68; — As RGB: color: rgb(95, 29, 104); — Tailwind CSS: bg-[hsl(293,57%,26%)] — CSS variable: --color-primary: hsl(293, 57%, 26%);