HSL(302, 50%, 42%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(302,50%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(302, 50%, 42%) | color: hsl(302, 50%, 42%) | |
| HEX | #A1369D | color: #A1369D | |
| RGB | rgb(161, 54, 157) | color: rgb(161, 54, 157) | |
| CMYK | cmyk(0%, 66%, 2%, 37%) | — | |
| HSV | hsv(302, 66%, 63%) | — | |
| HWB | hwb(302 21% 37%) | color: hwb(302 21% 37%) | |
| OKLCH | oklch(0.5261 0.1849 329.37) | color: oklch(0.5261 0.1849 329.37) | |
| Lab | lab(42.23 56.47 -34.17) | color: lab(42.23 56.47 -34.17) | |
| LCH | lch(42.23 66 328.82) | color: lch(42.23 66 328.82) |
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)
#737284 — rgb(115, 114, 132)
Deuteranopia (Green-blind)
#79817E — rgb(121, 129, 126)
Tritanopia (Blue-blind)
#9C706C — rgb(156, 112, 108)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(302, 50%, 42%);
text
color: hsl(302, 50%, 42%);
border
border: 2px solid hsl(302, 50%, 42%);
gradient light
background: linear-gradient(to right, hsl(302, 50%, 62%), hsl(302, 50%, 42%));
gradient dark
background: linear-gradient(to right, hsl(302, 50%, 42%), hsl(302, 50%, 22%))
hex
background-color: #A1369D;
tailwind
bg-[hsl(302,50%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(302, 50%, 42%, 0.4);
css variable
--color-primary: hsl(302, 50%, 42%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(302, 50%, 42%)?
HEX: #A1369D | RGB: rgb(161, 54, 157) | CMYK: 0%, 66%, 2%, 37% | HSV: 302°, 66%, 63%. Copy any format from the conversion table above.
What colors go well with #A1369D?
The complementary color is HSL(122, 50%, 42%). 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, 50%, 42%) in CSS?
As HSL: color: hsl(302, 50%, 42%); — As HEX: color: #A1369D; — As RGB: color: rgb(161, 54, 157); — Tailwind CSS: bg-[hsl(302,50%,42%)] — CSS variable: --color-primary: hsl(302, 50%, 42%);