HSL(302, 100%, 16%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(302,100%,16%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(302, 100%, 16%) | color: hsl(302, 100%, 16%) | |
| HEX | #52004F | color: #52004F | |
| RGB | rgb(82, 0, 79) | color: rgb(82, 0, 79) | |
| CMYK | cmyk(0%, 100%, 4%, 68%) | — | |
| HSV | hsv(302, 100%, 32%) | — | |
| HWB | hwb(302 0% 68%) | color: hwb(302 0% 68%) | |
| OKLCH | oklch(0.3056 0.1392 330.19) | color: oklch(0.3056 0.1392 330.19) | |
| Lab | lab(17.27 42.58 -24.97) | color: lab(17.27 42.58 -24.97) | |
| LCH | lch(17.27 49.36 329.61) | color: lch(17.27 49.36 329.61) |
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)
#2E2E3C — rgb(46, 46, 60)
Deuteranopia (Green-blind)
#333937 — rgb(51, 57, 55)
Tritanopia (Blue-blind)
#4E2D29 — rgb(78, 45, 41)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(302, 100%, 16%);
text
color: hsl(302, 100%, 16%);
border
border: 2px solid hsl(302, 100%, 16%);
gradient light
background: linear-gradient(to right, hsl(302, 100%, 36%), hsl(302, 100%, 16%));
gradient dark
background: linear-gradient(to right, hsl(302, 100%, 16%), hsl(302, 100%, 0%))
hex
background-color: #52004F;
tailwind
bg-[hsl(302,100%,16%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(302, 100%, 16%, 0.4);
css variable
--color-primary: hsl(302, 100%, 16%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(302, 100%, 16%)?
HEX: #52004F | RGB: rgb(82, 0, 79) | CMYK: 0%, 100%, 4%, 68% | HSV: 302°, 100%, 32%. Copy any format from the conversion table above.
What colors go well with #52004F?
The complementary color is HSL(122, 100%, 16%). 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, 100%, 16%) in CSS?
As HSL: color: hsl(302, 100%, 16%); — As HEX: color: #52004F; — As RGB: color: rgb(82, 0, 79); — Tailwind CSS: bg-[hsl(302,100%,16%)] — CSS variable: --color-primary: hsl(302, 100%, 16%);