HSL(309, 40%, 21%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(309,40%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(309, 40%, 21%) | color: hsl(309, 40%, 21%) | |
| HEX | #4B2045 | color: #4B2045 | |
| RGB | rgb(75, 32, 69) | color: rgb(75, 32, 69) | |
| CMYK | cmyk(0%, 57%, 8%, 71%) | — | |
| HSV | hsv(308, 57%, 29%) | — | |
| HWB | hwb(308 12% 71%) | color: hwb(308 12% 71%) | |
| OKLCH | oklch(0.32 0.0841 332.9) | color: oklch(0.32 0.0841 332.9) | |
| Lab | lab(19.88 26.13 -14.09) | color: lab(19.88 26.13 -14.09) | |
| LCH | lch(19.88 29.69 331.67) | color: lch(19.88 29.69 331.67) |
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)
#38383C — rgb(56, 56, 60)
Deuteranopia (Green-blind)
#3B3E3A — rgb(59, 62, 58)
Tritanopia (Blue-blind)
#493533 — rgb(73, 53, 51)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(309, 40%, 21%);
text
color: hsl(309, 40%, 21%);
border
border: 2px solid hsl(309, 40%, 21%);
gradient light
background: linear-gradient(to right, hsl(309, 40%, 41%), hsl(309, 40%, 21%));
gradient dark
background: linear-gradient(to right, hsl(309, 40%, 21%), hsl(309, 40%, 1%))
hex
background-color: #4B2045;
tailwind
bg-[hsl(309,40%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(309, 40%, 21%, 0.4);
css variable
--color-primary: hsl(309, 40%, 21%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(309, 40%, 21%)?
HEX: #4B2045 | RGB: rgb(75, 32, 69) | CMYK: 0%, 57%, 8%, 71% | HSV: 308°, 57%, 29%. Copy any format from the conversion table above.
What colors go well with #4B2045?
The complementary color is HSL(129, 40%, 21%). For a triadic harmony, use hues 309°, 69°, and 189°. For analogous combinations, try hues 279° and 339°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(309, 40%, 21%) in CSS?
As HSL: color: hsl(309, 40%, 21%); — As HEX: color: #4B2045; — As RGB: color: rgb(75, 32, 69); — Tailwind CSS: bg-[hsl(309,40%,21%)] — CSS variable: --color-primary: hsl(309, 40%, 21%);