HSL(302, 86%, 16%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(302,86%,16%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(302, 86%, 16%) | color: hsl(302, 86%, 16%) | |
| HEX | #4C064A | color: #4C064A | |
| RGB | rgb(76, 6, 74) | color: rgb(76, 6, 74) | |
| CMYK | cmyk(0%, 92%, 3%, 70%) | — | |
| HSV | hsv(302, 92%, 30%) | — | |
| HWB | hwb(302 2% 70%) | color: hwb(302 2% 70%) | |
| OKLCH | oklch(0.2955 0.1265 329.56) | color: oklch(0.2955 0.1265 329.56) | |
| Lab | lab(16.31 38.63 -23.12) | color: lab(16.31 38.63 -23.12) | |
| LCH | lch(16.31 45.02 329.1) | color: lch(16.31 45.02 329.1) |
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)
#2E2D3A — rgb(46, 45, 58)
Deuteranopia (Green-blind)
#323736 — rgb(50, 55, 54)
Tritanopia (Blue-blind)
#492D2A — rgb(73, 45, 42)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(302, 86%, 16%);
text
color: hsl(302, 86%, 16%);
border
border: 2px solid hsl(302, 86%, 16%);
gradient light
background: linear-gradient(to right, hsl(302, 86%, 36%), hsl(302, 86%, 16%));
gradient dark
background: linear-gradient(to right, hsl(302, 86%, 16%), hsl(302, 86%, 0%))
hex
background-color: #4C064A;
tailwind
bg-[hsl(302,86%,16%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(302, 86%, 16%, 0.4);
css variable
--color-primary: hsl(302, 86%, 16%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(302, 86%, 16%)?
HEX: #4C064A | RGB: rgb(76, 6, 74) | CMYK: 0%, 92%, 3%, 70% | HSV: 302°, 92%, 30%. Copy any format from the conversion table above.
What colors go well with #4C064A?
The complementary color is HSL(122, 86%, 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, 86%, 16%) in CSS?
As HSL: color: hsl(302, 86%, 16%); — As HEX: color: #4C064A; — As RGB: color: rgb(76, 6, 74); — Tailwind CSS: bg-[hsl(302,86%,16%)] — CSS variable: --color-primary: hsl(302, 86%, 16%);