HSL(298, 20%, 53%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(298,20%,53%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(298, 20%, 53%) | color: hsl(298, 20%, 53%) | |
| HEX | #9E6F9F | color: #9E6F9F | |
| RGB | rgb(158, 111, 159) | color: rgb(158, 111, 159) | |
| CMYK | cmyk(1%, 30%, 0%, 38%) | — | |
| HSV | hsv(299, 30%, 62%) | — | |
| HWB | hwb(299 43% 38%) | color: hwb(299 43% 38%) | |
| OKLCH | oklch(0.6064 0.0895 325.92) | color: oklch(0.6064 0.0895 325.92) | |
| Lab | lab(53.1 26.89 -18.51) | color: lab(53.1 26.89 -18.51) | |
| LCH | lch(53.1 32.64 325.46) | color: lch(53.1 32.64 325.46) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#8A8993 — rgb(138, 137, 147)
Deuteranopia (Green-blind)
#8C9091 — rgb(140, 144, 145)
Tritanopia (Blue-blind)
#9C8A88 — rgb(156, 138, 136)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(298, 20%, 53%);
text
color: hsl(298, 20%, 53%);
border
border: 2px solid hsl(298, 20%, 53%);
gradient light
background: linear-gradient(to right, hsl(298, 20%, 73%), hsl(298, 20%, 53%));
gradient dark
background: linear-gradient(to right, hsl(298, 20%, 53%), hsl(298, 20%, 33%))
hex
background-color: #9E6F9F;
tailwind
bg-[hsl(298,20%,53%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(298, 20%, 53%, 0.4);
css variable
--color-primary: hsl(298, 20%, 53%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(298, 20%, 53%)?
HEX: #9E6F9F | RGB: rgb(158, 111, 159) | CMYK: 1%, 30%, 0%, 38% | HSV: 299°, 30%, 62%. Copy any format from the conversion table above.
What colors go well with #9E6F9F?
The complementary color is HSL(118, 20%, 53%). 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, 20%, 53%) in CSS?
As HSL: color: hsl(298, 20%, 53%); — As HEX: color: #9E6F9F; — As RGB: color: rgb(158, 111, 159); — Tailwind CSS: bg-[hsl(298,20%,53%)] — CSS variable: --color-primary: hsl(298, 20%, 53%);