HSL(311, 28%, 42%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(311,28%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(311, 28%, 42%) | color: hsl(311, 28%, 42%) | |
| HEX | #894D7E | color: #894D7E | |
| RGB | rgb(137, 77, 126) | color: rgb(137, 77, 126) | |
| CMYK | cmyk(0%, 44%, 8%, 46%) | — | |
| HSV | hsv(311, 44%, 54%) | — | |
| HWB | hwb(311 30% 46%) | color: hwb(311 30% 46%) | |
| OKLCH | oklch(0.5082 0.1044 334.09) | color: oklch(0.5082 0.1044 334.09) | |
| Lab | lab(41.43 32.72 -16.9) | color: lab(41.43 32.72 -16.9) | |
| LCH | lch(41.43 36.83 332.68) | color: lch(41.43 36.83 332.68) |
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)
#6F6E72 — rgb(111, 110, 114)
Deuteranopia (Green-blind)
#73776F — rgb(115, 119, 111)
Tritanopia (Blue-blind)
#866967 — rgb(134, 105, 103)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(311, 28%, 42%);
text
color: hsl(311, 28%, 42%);
border
border: 2px solid hsl(311, 28%, 42%);
gradient light
background: linear-gradient(to right, hsl(311, 28%, 62%), hsl(311, 28%, 42%));
gradient dark
background: linear-gradient(to right, hsl(311, 28%, 42%), hsl(311, 28%, 22%))
hex
background-color: #894D7E;
tailwind
bg-[hsl(311,28%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(311, 28%, 42%, 0.4);
css variable
--color-primary: hsl(311, 28%, 42%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(311, 28%, 42%)?
HEX: #894D7E | RGB: rgb(137, 77, 126) | CMYK: 0%, 44%, 8%, 46% | HSV: 311°, 44%, 54%. Copy any format from the conversion table above.
What colors go well with #894D7E?
The complementary color is HSL(131, 28%, 42%). For a triadic harmony, use hues 311°, 71°, and 191°. For analogous combinations, try hues 281° and 341°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(311, 28%, 42%) in CSS?
As HSL: color: hsl(311, 28%, 42%); — As HEX: color: #894D7E; — As RGB: color: rgb(137, 77, 126); — Tailwind CSS: bg-[hsl(311,28%,42%)] — CSS variable: --color-primary: hsl(311, 28%, 42%);