HSL(298, 100%, 18%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(298,100%,18%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(298, 100%, 18%) | color: hsl(298, 100%, 18%) | |
| HEX | #59005C | color: #59005C | |
| RGB | rgb(89, 0, 92) | color: rgb(89, 0, 92) | |
| CMYK | cmyk(3%, 100%, 0%, 64%) | — | |
| HSV | hsv(298, 100%, 36%) | — | |
| HWB | hwb(298 0% 64%) | color: hwb(298 0% 64%) | |
| OKLCH | oklch(0.3277 0.1519 326.72) | color: oklch(0.3277 0.1519 326.72) | |
| Lab | lab(19.63 46.09 -29.89) | color: lab(19.63 46.09 -29.89) | |
| LCH | lch(19.63 54.93 327.04) | color: lch(19.63 54.93 327.04) |
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)
#323246 — rgb(50, 50, 70)
Deuteranopia (Green-blind)
#383E40 — rgb(56, 62, 64)
Tritanopia (Blue-blind)
#553430 — rgb(85, 52, 48)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(298, 100%, 18%);
text
color: hsl(298, 100%, 18%);
border
border: 2px solid hsl(298, 100%, 18%);
gradient light
background: linear-gradient(to right, hsl(298, 100%, 38%), hsl(298, 100%, 18%));
gradient dark
background: linear-gradient(to right, hsl(298, 100%, 18%), hsl(298, 100%, 0%))
hex
background-color: #59005C;
tailwind
bg-[hsl(298,100%,18%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(298, 100%, 18%, 0.4);
css variable
--color-primary: hsl(298, 100%, 18%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(298, 100%, 18%)?
HEX: #59005C | RGB: rgb(89, 0, 92) | CMYK: 3%, 100%, 0%, 64% | HSV: 298°, 100%, 36%. Copy any format from the conversion table above.
What colors go well with #59005C?
The complementary color is HSL(118, 100%, 18%). For a triadic harmony, use hues 298°, 58°, and 178°. For analogous combinations, try hues 268° and 328°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(298, 100%, 18%) in CSS?
As HSL: color: hsl(298, 100%, 18%); — As HEX: color: #59005C; — As RGB: color: rgb(89, 0, 92); — Tailwind CSS: bg-[hsl(298,100%,18%)] — CSS variable: --color-primary: hsl(298, 100%, 18%);