HSL(304, 21%, 28%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(304,21%,28%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(304, 21%, 28%) | color: hsl(304, 21%, 28%) | |
| HEX | #563854 | color: #563854 | |
| RGB | rgb(86, 56, 84) | color: rgb(86, 56, 84) | |
| CMYK | cmyk(0%, 35%, 2%, 66%) | — | |
| HSV | hsv(304, 35%, 34%) | — | |
| HWB | hwb(304 22% 66%) | color: hwb(304 22% 66%) | |
| OKLCH | oklch(0.3864 0.0606 328.98) | color: oklch(0.3864 0.0606 328.98) | |
| Lab | lab(27.97 18.56 -11.55) | color: lab(27.97 18.56 -11.55) | |
| LCH | lch(27.97 21.86 328.11) | color: lch(27.97 21.86 328.11) |
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)
#49494D — rgb(73, 73, 77)
Deuteranopia (Green-blind)
#4B4D4C — rgb(75, 77, 76)
Tritanopia (Blue-blind)
#554847 — rgb(85, 72, 71)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(304, 21%, 28%);
text
color: hsl(304, 21%, 28%);
border
border: 2px solid hsl(304, 21%, 28%);
gradient light
background: linear-gradient(to right, hsl(304, 21%, 48%), hsl(304, 21%, 28%));
gradient dark
background: linear-gradient(to right, hsl(304, 21%, 28%), hsl(304, 21%, 8%))
hex
background-color: #563854;
tailwind
bg-[hsl(304,21%,28%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(304, 21%, 28%, 0.4);
css variable
--color-primary: hsl(304, 21%, 28%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(304, 21%, 28%)?
HEX: #563854 | RGB: rgb(86, 56, 84) | CMYK: 0%, 35%, 2%, 66% | HSV: 304°, 35%, 34%. Copy any format from the conversion table above.
What colors go well with #563854?
The complementary color is HSL(124, 21%, 28%). 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, 21%, 28%) in CSS?
As HSL: color: hsl(304, 21%, 28%); — As HEX: color: #563854; — As RGB: color: rgb(86, 56, 84); — Tailwind CSS: bg-[hsl(304,21%,28%)] — CSS variable: --color-primary: hsl(304, 21%, 28%);