HSL(304, 42%, 41%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(304,42%,41%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(304, 42%, 41%) | color: hsl(304, 42%, 41%) | |
| HEX | #943D8F | color: #943D8F | |
| RGB | rgb(148, 61, 143) | color: rgb(148, 61, 143) | |
| CMYK | cmyk(0%, 59%, 3%, 42%) | — | |
| HSV | hsv(303, 59%, 58%) | — | |
| HWB | hwb(303 24% 42%) | color: hwb(303 24% 42%) | |
| OKLCH | oklch(0.5079 0.1553 329.85) | color: oklch(0.5079 0.1553 329.85) | |
| Lab | lab(40.6 47.55 -28.42) | color: lab(40.6 47.55 -28.42) | |
| LCH | lch(40.6 55.4 329.13) | color: lch(40.6 55.4 329.13) |
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)
#6E6E7B — rgb(110, 110, 123)
Deuteranopia (Green-blind)
#737A76 — rgb(115, 122, 118)
Tritanopia (Blue-blind)
#906B68 — rgb(144, 107, 104)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(304, 42%, 41%);
text
color: hsl(304, 42%, 41%);
border
border: 2px solid hsl(304, 42%, 41%);
gradient light
background: linear-gradient(to right, hsl(304, 42%, 61%), hsl(304, 42%, 41%));
gradient dark
background: linear-gradient(to right, hsl(304, 42%, 41%), hsl(304, 42%, 21%))
hex
background-color: #943D8F;
tailwind
bg-[hsl(304,42%,41%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(304, 42%, 41%, 0.4);
css variable
--color-primary: hsl(304, 42%, 41%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(304, 42%, 41%)?
HEX: #943D8F | RGB: rgb(148, 61, 143) | CMYK: 0%, 59%, 3%, 42% | HSV: 303°, 59%, 58%. Copy any format from the conversion table above.
What colors go well with #943D8F?
The complementary color is HSL(124, 42%, 41%). For a triadic harmony, use hues 304°, 64°, and 184°. For analogous combinations, try hues 274° and 334°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(304, 42%, 41%) in CSS?
As HSL: color: hsl(304, 42%, 41%); — As HEX: color: #943D8F; — As RGB: color: rgb(148, 61, 143); — Tailwind CSS: bg-[hsl(304,42%,41%)] — CSS variable: --color-primary: hsl(304, 42%, 41%);