HSL(299, 60%, 23%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(299,60%,23%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(299, 60%, 23%) | color: hsl(299, 60%, 23%) | |
| HEX | #5D175E | color: #5D175E | |
| RGB | rgb(93, 23, 94) | color: rgb(93, 23, 94) | |
| CMYK | cmyk(1%, 76%, 0%, 63%) | — | |
| HSV | hsv(299, 76%, 37%) | — | |
| HWB | hwb(299 9% 63%) | color: hwb(299 9% 63%) | |
| OKLCH | oklch(0.3523 0.134 327.37) | color: oklch(0.3523 0.134 327.37) | |
| Lab | lab(22.82 40.65 -26.07) | color: lab(22.82 40.65 -26.07) | |
| LCH | lch(22.82 48.29 327.33) | color: lch(22.82 48.29 327.33) |
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)
#3F3E4D — rgb(63, 62, 77)
Deuteranopia (Green-blind)
#434849 — rgb(67, 72, 73)
Tritanopia (Blue-blind)
#5A3F3C — rgb(90, 63, 60)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(299, 60%, 23%);
text
color: hsl(299, 60%, 23%);
border
border: 2px solid hsl(299, 60%, 23%);
gradient light
background: linear-gradient(to right, hsl(299, 60%, 43%), hsl(299, 60%, 23%));
gradient dark
background: linear-gradient(to right, hsl(299, 60%, 23%), hsl(299, 60%, 3%))
hex
background-color: #5D175E;
tailwind
bg-[hsl(299,60%,23%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(299, 60%, 23%, 0.4);
css variable
--color-primary: hsl(299, 60%, 23%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(299, 60%, 23%)?
HEX: #5D175E | RGB: rgb(93, 23, 94) | CMYK: 1%, 76%, 0%, 63% | HSV: 299°, 76%, 37%. Copy any format from the conversion table above.
What colors go well with #5D175E?
The complementary color is HSL(119, 60%, 23%). For a triadic harmony, use hues 299°, 59°, and 179°. For analogous combinations, try hues 269° and 329°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(299, 60%, 23%) in CSS?
As HSL: color: hsl(299, 60%, 23%); — As HEX: color: #5D175E; — As RGB: color: rgb(93, 23, 94); — Tailwind CSS: bg-[hsl(299,60%,23%)] — CSS variable: --color-primary: hsl(299, 60%, 23%);