HSL(298, 62%, 43%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(298,62%,43%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(298, 62%, 43%) | color: hsl(298, 62%, 43%) | |
| HEX | #AD2AB2 | color: #AD2AB2 | |
| RGB | rgb(173, 42, 178) | color: rgb(173, 42, 178) | |
| CMYK | cmyk(3%, 76%, 0%, 30%) | — | |
| HSV | hsv(298, 76%, 70%) | — | |
| HWB | hwb(298 17% 30%) | color: hwb(298 17% 30%) | |
| OKLCH | oklch(0.5455 0.221 326.45) | color: oklch(0.5455 0.221 326.45) | |
| Lab | lab(43.88 66.87 -43.93) | color: lab(43.88 66.87 -43.93) | |
| LCH | lch(43.88 80.01 326.7) | color: lch(43.88 80.01 326.7) |
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)
#747391 — rgb(116, 115, 145)
Deuteranopia (Green-blind)
#7C8689 — rgb(124, 134, 137)
Tritanopia (Blue-blind)
#A67771 — rgb(166, 119, 113)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(298, 62%, 43%);
text
color: hsl(298, 62%, 43%);
border
border: 2px solid hsl(298, 62%, 43%);
gradient light
background: linear-gradient(to right, hsl(298, 62%, 63%), hsl(298, 62%, 43%));
gradient dark
background: linear-gradient(to right, hsl(298, 62%, 43%), hsl(298, 62%, 23%))
hex
background-color: #AD2AB2;
tailwind
bg-[hsl(298,62%,43%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(298, 62%, 43%, 0.4);
css variable
--color-primary: hsl(298, 62%, 43%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(298, 62%, 43%)?
HEX: #AD2AB2 | RGB: rgb(173, 42, 178) | CMYK: 3%, 76%, 0%, 30% | HSV: 298°, 76%, 70%. Copy any format from the conversion table above.
What colors go well with #AD2AB2?
The complementary color is HSL(118, 62%, 43%). 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, 62%, 43%) in CSS?
As HSL: color: hsl(298, 62%, 43%); — As HEX: color: #AD2AB2; — As RGB: color: rgb(173, 42, 178); — Tailwind CSS: bg-[hsl(298,62%,43%)] — CSS variable: --color-primary: hsl(298, 62%, 43%);