HSL(304, 50%, 22%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(304,50%,22%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(304, 50%, 22%) | color: hsl(304, 50%, 22%) | |
| HEX | #541C50 | color: #541C50 | |
| RGB | rgb(84, 28, 80) | color: rgb(84, 28, 80) | |
| CMYK | cmyk(0%, 67%, 5%, 67%) | — | |
| HSV | hsv(304, 67%, 33%) | — | |
| HWB | hwb(304 11% 67%) | color: hwb(304 11% 67%) | |
| OKLCH | oklch(0.3346 0.1086 330.6) | color: oklch(0.3346 0.1086 330.6) | |
| Lab | lab(21.19 33.33 -19.42) | color: lab(21.19 33.33 -19.42) | |
| LCH | lch(21.19 38.57 329.77) | color: lch(21.19 38.57 329.77) |
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)
#3C3B43 — rgb(60, 59, 67)
Deuteranopia (Green-blind)
#3F4340 — rgb(63, 67, 64)
Tritanopia (Blue-blind)
#513937 — rgb(81, 57, 55)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(304, 50%, 22%);
text
color: hsl(304, 50%, 22%);
border
border: 2px solid hsl(304, 50%, 22%);
gradient light
background: linear-gradient(to right, hsl(304, 50%, 42%), hsl(304, 50%, 22%));
gradient dark
background: linear-gradient(to right, hsl(304, 50%, 22%), hsl(304, 50%, 2%))
hex
background-color: #541C50;
tailwind
bg-[hsl(304,50%,22%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(304, 50%, 22%, 0.4);
css variable
--color-primary: hsl(304, 50%, 22%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(304, 50%, 22%)?
HEX: #541C50 | RGB: rgb(84, 28, 80) | CMYK: 0%, 67%, 5%, 67% | HSV: 304°, 67%, 33%. Copy any format from the conversion table above.
What colors go well with #541C50?
The complementary color is HSL(124, 50%, 22%). For a triadic harmony, use hues 304°, 64°, and 184°. For analogous combinations, try hues 274° and 334°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(304, 50%, 22%) in CSS?
As HSL: color: hsl(304, 50%, 22%); — As HEX: color: #541C50; — As RGB: color: rgb(84, 28, 80); — Tailwind CSS: bg-[hsl(304,50%,22%)] — CSS variable: --color-primary: hsl(304, 50%, 22%);