HSL(313, 100%, 18%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(313,100%,18%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(313, 100%, 18%) | color: hsl(313, 100%, 18%) | |
| HEX | #5C0048 | color: #5C0048 | |
| RGB | rgb(92, 0, 72) | color: rgb(92, 0, 72) | |
| CMYK | cmyk(0%, 100%, 22%, 64%) | — | |
| HSV | hsv(313, 100%, 36%) | — | |
| HWB | hwb(313 0% 64%) | color: hwb(313 0% 64%) | |
| OKLCH | oklch(0.3203 0.139 340.3) | color: oklch(0.3203 0.139 340.3) | |
| Lab | lab(18.99 43.56 -17.3) | color: lab(18.99 43.56 -17.3) | |
| LCH | lch(18.99 46.87 338.34) | color: lch(18.99 46.87 338.34) |
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)
#343337 — rgb(52, 51, 55)
Deuteranopia (Green-blind)
#3A4032 — rgb(58, 64, 50)
Tritanopia (Blue-blind)
#572926 — rgb(87, 41, 38)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(313, 100%, 18%);
text
color: hsl(313, 100%, 18%);
border
border: 2px solid hsl(313, 100%, 18%);
gradient light
background: linear-gradient(to right, hsl(313, 100%, 38%), hsl(313, 100%, 18%));
gradient dark
background: linear-gradient(to right, hsl(313, 100%, 18%), hsl(313, 100%, 0%))
hex
background-color: #5C0048;
tailwind
bg-[hsl(313,100%,18%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(313, 100%, 18%, 0.4);
css variable
--color-primary: hsl(313, 100%, 18%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(313, 100%, 18%)?
HEX: #5C0048 | RGB: rgb(92, 0, 72) | CMYK: 0%, 100%, 22%, 64% | HSV: 313°, 100%, 36%. Copy any format from the conversion table above.
What colors go well with #5C0048?
The complementary color is HSL(133, 100%, 18%). For a triadic harmony, use hues 313°, 73°, and 193°. For analogous combinations, try hues 283° and 343°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(313, 100%, 18%) in CSS?
As HSL: color: hsl(313, 100%, 18%); — As HEX: color: #5C0048; — As RGB: color: rgb(92, 0, 72); — Tailwind CSS: bg-[hsl(313,100%,18%)] — CSS variable: --color-primary: hsl(313, 100%, 18%);