HSL(302, 54%, 41%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(302,54%,41%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(302, 54%, 41%) | color: hsl(302, 54%, 41%) | |
| HEX | #A1309D | color: #A1309D | |
| RGB | rgb(161, 48, 157) | color: rgb(161, 48, 157) | |
| CMYK | cmyk(0%, 70%, 2%, 37%) | — | |
| HSV | hsv(302, 70%, 63%) | — | |
| HWB | hwb(302 19% 37%) | color: hwb(302 19% 37%) | |
| OKLCH | oklch(0.5202 0.1924 329.42) | color: oklch(0.5202 0.1924 329.42) | |
| Lab | lab(41.42 58.76 -35.46) | color: lab(41.42 58.76 -35.46) | |
| LCH | lch(41.42 68.63 328.89) | color: lch(41.42 68.63 328.89) |
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)
#706F83 — rgb(112, 111, 131)
Deuteranopia (Green-blind)
#777F7C — rgb(119, 127, 124)
Tritanopia (Blue-blind)
#9B6E69 — rgb(155, 110, 105)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(302, 54%, 41%);
text
color: hsl(302, 54%, 41%);
border
border: 2px solid hsl(302, 54%, 41%);
gradient light
background: linear-gradient(to right, hsl(302, 54%, 61%), hsl(302, 54%, 41%));
gradient dark
background: linear-gradient(to right, hsl(302, 54%, 41%), hsl(302, 54%, 21%))
hex
background-color: #A1309D;
tailwind
bg-[hsl(302,54%,41%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(302, 54%, 41%, 0.4);
css variable
--color-primary: hsl(302, 54%, 41%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(302, 54%, 41%)?
HEX: #A1309D | RGB: rgb(161, 48, 157) | CMYK: 0%, 70%, 2%, 37% | HSV: 302°, 70%, 63%. Copy any format from the conversion table above.
What colors go well with #A1309D?
The complementary color is HSL(122, 54%, 41%). For a triadic harmony, use hues 302°, 62°, and 182°. For analogous combinations, try hues 272° and 332°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(302, 54%, 41%) in CSS?
As HSL: color: hsl(302, 54%, 41%); — As HEX: color: #A1309D; — As RGB: color: rgb(161, 48, 157); — Tailwind CSS: bg-[hsl(302,54%,41%)] — CSS variable: --color-primary: hsl(302, 54%, 41%);