HSL(284, 60%, 28%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(284,60%,28%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(284, 60%, 28%) | color: hsl(284, 60%, 28%) | |
| HEX | #5B1D72 | color: #5B1D72 | |
| RGB | rgb(91, 29, 114) | color: rgb(91, 29, 114) | |
| CMYK | cmyk(20%, 75%, 0%, 55%) | — | |
| HSV | hsv(284, 75%, 45%) | — | |
| HWB | hwb(284 11% 55%) | color: hwb(284 11% 55%) | |
| OKLCH | oklch(0.3693 0.1444 315.2) | color: oklch(0.3693 0.1444 315.2) | |
| Lab | lab(24.7 41.78 -36.12) | color: lab(24.7 41.78 -36.12) | |
| LCH | lch(24.7 55.23 319.16) | color: lch(24.7 55.23 319.16) |
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)
#40405D — rgb(64, 64, 93)
Deuteranopia (Green-blind)
#444859 — rgb(68, 72, 89)
Tritanopia (Blue-blind)
#584D4A — rgb(88, 77, 74)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(284, 60%, 28%);
text
color: hsl(284, 60%, 28%);
border
border: 2px solid hsl(284, 60%, 28%);
gradient light
background: linear-gradient(to right, hsl(284, 60%, 48%), hsl(284, 60%, 28%));
gradient dark
background: linear-gradient(to right, hsl(284, 60%, 28%), hsl(284, 60%, 8%))
hex
background-color: #5B1D72;
tailwind
bg-[hsl(284,60%,28%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(284, 60%, 28%, 0.4);
css variable
--color-primary: hsl(284, 60%, 28%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(284, 60%, 28%)?
HEX: #5B1D72 | RGB: rgb(91, 29, 114) | CMYK: 20%, 75%, 0%, 55% | HSV: 284°, 75%, 45%. Copy any format from the conversion table above.
What colors go well with #5B1D72?
The complementary color is HSL(104, 60%, 28%). For a triadic harmony, use hues 284°, 44°, and 164°. For analogous combinations, try hues 254° and 314°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(284, 60%, 28%) in CSS?
As HSL: color: hsl(284, 60%, 28%); — As HEX: color: #5B1D72; — As RGB: color: rgb(91, 29, 114); — Tailwind CSS: bg-[hsl(284,60%,28%)] — CSS variable: --color-primary: hsl(284, 60%, 28%);