HSL(287, 94%, 20%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(287,94%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(287, 94%, 20%) | color: hsl(287, 94%, 20%) | |
| HEX | #4E0363 | color: #4E0363 | |
| RGB | rgb(78, 3, 99) | color: rgb(78, 3, 99) | |
| CMYK | cmyk(21%, 97%, 0%, 61%) | — | |
| HSV | hsv(287, 97%, 39%) | — | |
| HWB | hwb(287 1% 61%) | color: hwb(287 1% 61%) | |
| OKLCH | oklch(0.3162 0.1509 316.46) | color: oklch(0.3162 0.1509 316.46) | |
| Lab | lab(18.3 44.67 -36.79) | color: lab(18.3 44.67 -36.79) | |
| LCH | lch(18.3 57.87 320.53) | color: lch(18.3 57.87 320.53) |
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)
#2E2D4C — rgb(46, 45, 76)
Deuteranopia (Green-blind)
#323846 — rgb(50, 56, 70)
Tritanopia (Blue-blind)
#4A3935 — rgb(74, 57, 53)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(287, 94%, 20%);
text
color: hsl(287, 94%, 20%);
border
border: 2px solid hsl(287, 94%, 20%);
gradient light
background: linear-gradient(to right, hsl(287, 94%, 40%), hsl(287, 94%, 20%));
gradient dark
background: linear-gradient(to right, hsl(287, 94%, 20%), hsl(287, 94%, 0%))
hex
background-color: #4E0363;
tailwind
bg-[hsl(287,94%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(287, 94%, 20%, 0.4);
css variable
--color-primary: hsl(287, 94%, 20%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(287, 94%, 20%)?
HEX: #4E0363 | RGB: rgb(78, 3, 99) | CMYK: 21%, 97%, 0%, 61% | HSV: 287°, 97%, 39%. Copy any format from the conversion table above.
What colors go well with #4E0363?
The complementary color is HSL(107, 94%, 20%). For a triadic harmony, use hues 287°, 47°, and 167°. For analogous combinations, try hues 257° and 317°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(287, 94%, 20%) in CSS?
As HSL: color: hsl(287, 94%, 20%); — As HEX: color: #4E0363; — As RGB: color: rgb(78, 3, 99); — Tailwind CSS: bg-[hsl(287,94%,20%)] — CSS variable: --color-primary: hsl(287, 94%, 20%);