HSL(298, 28%, 58%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(298,28%,58%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(298, 28%, 58%) | color: hsl(298, 28%, 58%) | |
| HEX | #B076B2 | color: #B076B2 | |
| RGB | rgb(176, 118, 178) | color: rgb(176, 118, 178) | |
| CMYK | cmyk(1%, 34%, 0%, 30%) | — | |
| HSV | hsv(298, 34%, 70%) | — | |
| HWB | hwb(298 46% 30%) | color: hwb(298 46% 30%) | |
| OKLCH | oklch(0.6464 0.109 325.61) | color: oklch(0.6464 0.109 325.61) | |
| Lab | lab(57.47 32.68 -22.65) | color: lab(57.47 32.68 -22.65) | |
| LCH | lch(57.47 39.76 325.27) | color: lch(57.47 39.76 325.27) |
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)
#9796A3 — rgb(151, 150, 163)
Deuteranopia (Green-blind)
#9A9FA0 — rgb(154, 159, 160)
Tritanopia (Blue-blind)
#AD9896 — rgb(173, 152, 150)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(298, 28%, 58%);
text
color: hsl(298, 28%, 58%);
border
border: 2px solid hsl(298, 28%, 58%);
gradient light
background: linear-gradient(to right, hsl(298, 28%, 78%), hsl(298, 28%, 58%));
gradient dark
background: linear-gradient(to right, hsl(298, 28%, 58%), hsl(298, 28%, 38%))
hex
background-color: #B076B2;
tailwind
bg-[hsl(298,28%,58%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(298, 28%, 58%, 0.4);
css variable
--color-primary: hsl(298, 28%, 58%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(298, 28%, 58%)?
HEX: #B076B2 | RGB: rgb(176, 118, 178) | CMYK: 1%, 34%, 0%, 30% | HSV: 298°, 34%, 70%. Copy any format from the conversion table above.
What colors go well with #B076B2?
The complementary color is HSL(118, 28%, 58%). 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, 28%, 58%) in CSS?
As HSL: color: hsl(298, 28%, 58%); — As HEX: color: #B076B2; — As RGB: color: rgb(176, 118, 178); — Tailwind CSS: bg-[hsl(298,28%,58%)] — CSS variable: --color-primary: hsl(298, 28%, 58%);