HSL(309, 35%, 20%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(309,35%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(309, 35%, 20%) | color: hsl(309, 35%, 20%) | |
| HEX | #45213F | color: #45213F | |
| RGB | rgb(69, 33, 63) | color: rgb(69, 33, 63) | |
| CMYK | cmyk(0%, 52%, 9%, 73%) | — | |
| HSV | hsv(310, 52%, 27%) | — | |
| HWB | hwb(310 13% 73%) | color: hwb(310 13% 73%) | |
| OKLCH | oklch(0.3095 0.071 333.67) | color: oklch(0.3095 0.071 333.67) | |
| Lab | lab(18.85 22.16 -11.63) | color: lab(18.85 22.16 -11.63) | |
| LCH | lch(18.85 25.03 332.31) | color: lch(18.85 25.03 332.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)
#353538 — rgb(53, 53, 56)
Deuteranopia (Green-blind)
#383A36 — rgb(56, 58, 54)
Tritanopia (Blue-blind)
#433231 — rgb(67, 50, 49)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(309, 35%, 20%);
text
color: hsl(309, 35%, 20%);
border
border: 2px solid hsl(309, 35%, 20%);
gradient light
background: linear-gradient(to right, hsl(309, 35%, 40%), hsl(309, 35%, 20%));
gradient dark
background: linear-gradient(to right, hsl(309, 35%, 20%), hsl(309, 35%, 0%))
hex
background-color: #45213F;
tailwind
bg-[hsl(309,35%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(309, 35%, 20%, 0.4);
css variable
--color-primary: hsl(309, 35%, 20%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(309, 35%, 20%)?
HEX: #45213F | RGB: rgb(69, 33, 63) | CMYK: 0%, 52%, 9%, 73% | HSV: 310°, 52%, 27%. Copy any format from the conversion table above.
What colors go well with #45213F?
The complementary color is HSL(129, 35%, 20%). 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, 35%, 20%) in CSS?
As HSL: color: hsl(309, 35%, 20%); — As HEX: color: #45213F; — As RGB: color: rgb(69, 33, 63); — Tailwind CSS: bg-[hsl(309,35%,20%)] — CSS variable: --color-primary: hsl(309, 35%, 20%);