HSL(302, 36%, 40%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(302,36%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(302, 36%, 40%) | color: hsl(302, 36%, 40%) | |
| HEX | #8B4188 | color: #8B4188 | |
| RGB | rgb(139, 65, 136) | color: rgb(139, 65, 136) | |
| CMYK | cmyk(0%, 53%, 2%, 45%) | — | |
| HSV | hsv(302, 53%, 55%) | — | |
| HWB | hwb(302 26% 45%) | color: hwb(302 26% 45%) | |
| OKLCH | oklch(0.4971 0.1366 328.94) | color: oklch(0.4971 0.1366 328.94) | |
| Lab | lab(39.66 41.69 -25.72) | color: lab(39.66 41.69 -25.72) | |
| LCH | lch(39.66 48.99 328.33) | color: lch(39.66 48.99 328.33) |
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)
#6B6A77 — rgb(107, 106, 119)
Deuteranopia (Green-blind)
#6F7573 — rgb(111, 117, 115)
Tritanopia (Blue-blind)
#876966 — rgb(135, 105, 102)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(302, 36%, 40%);
text
color: hsl(302, 36%, 40%);
border
border: 2px solid hsl(302, 36%, 40%);
gradient light
background: linear-gradient(to right, hsl(302, 36%, 60%), hsl(302, 36%, 40%));
gradient dark
background: linear-gradient(to right, hsl(302, 36%, 40%), hsl(302, 36%, 20%))
hex
background-color: #8B4188;
tailwind
bg-[hsl(302,36%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(302, 36%, 40%, 0.4);
css variable
--color-primary: hsl(302, 36%, 40%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(302, 36%, 40%)?
HEX: #8B4188 | RGB: rgb(139, 65, 136) | CMYK: 0%, 53%, 2%, 45% | HSV: 302°, 53%, 55%. Copy any format from the conversion table above.
What colors go well with #8B4188?
The complementary color is HSL(122, 36%, 40%). 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, 36%, 40%) in CSS?
As HSL: color: hsl(302, 36%, 40%); — As HEX: color: #8B4188; — As RGB: color: rgb(139, 65, 136); — Tailwind CSS: bg-[hsl(302,36%,40%)] — CSS variable: --color-primary: hsl(302, 36%, 40%);