HSL(302, 75%, 21%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(302,75%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(302, 75%, 21%) | color: hsl(302, 75%, 21%) | |
| HEX | #5E0D5B | color: #5E0D5B | |
| RGB | rgb(94, 13, 91) | color: rgb(94, 13, 91) | |
| CMYK | cmyk(0%, 86%, 3%, 63%) | — | |
| HSV | hsv(302, 86%, 37%) | — | |
| HWB | hwb(302 5% 63%) | color: hwb(302 5% 63%) | |
| OKLCH | oklch(0.3438 0.1428 329.87) | color: oklch(0.3438 0.1428 329.87) | |
| Lab | lab(21.67 43.66 -25.91) | color: lab(21.67 43.66 -25.91) | |
| LCH | lch(21.67 50.77 329.31) | color: lch(21.67 50.77 329.31) |
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)
#3B3A48 — rgb(59, 58, 72)
Deuteranopia (Green-blind)
#404644 — rgb(64, 70, 68)
Tritanopia (Blue-blind)
#5A3936 — rgb(90, 57, 54)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(302, 75%, 21%);
text
color: hsl(302, 75%, 21%);
border
border: 2px solid hsl(302, 75%, 21%);
gradient light
background: linear-gradient(to right, hsl(302, 75%, 41%), hsl(302, 75%, 21%));
gradient dark
background: linear-gradient(to right, hsl(302, 75%, 21%), hsl(302, 75%, 1%))
hex
background-color: #5E0D5B;
tailwind
bg-[hsl(302,75%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(302, 75%, 21%, 0.4);
css variable
--color-primary: hsl(302, 75%, 21%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(302, 75%, 21%)?
HEX: #5E0D5B | RGB: rgb(94, 13, 91) | CMYK: 0%, 86%, 3%, 63% | HSV: 302°, 86%, 37%. Copy any format from the conversion table above.
What colors go well with #5E0D5B?
The complementary color is HSL(122, 75%, 21%). 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, 75%, 21%) in CSS?
As HSL: color: hsl(302, 75%, 21%); — As HEX: color: #5E0D5B; — As RGB: color: rgb(94, 13, 91); — Tailwind CSS: bg-[hsl(302,75%,21%)] — CSS variable: --color-primary: hsl(302, 75%, 21%);