HSL(262, 63%, 42%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(262,63%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(262, 63%, 42%) | color: hsl(262, 63%, 42%) | |
| HEX | #5928AF | color: #5928AF | |
| RGB | rgb(89, 40, 175) | color: rgb(89, 40, 175) | |
| CMYK | cmyk(49%, 77%, 0%, 31%) | — | |
| HSV | hsv(262, 77%, 69%) | — | |
| HWB | hwb(262 16% 31%) | color: hwb(262 16% 31%) | |
| OKLCH | oklch(0.4302 0.1967 292.6) | color: oklch(0.4302 0.1967 292.6) | |
| Lab | lab(31.2 51.6 -63.26) | color: lab(31.2 51.6 -63.26) | |
| LCH | lch(31.2 81.64 309.2) | color: lch(31.2 81.64 309.2) |
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)
#44438E — rgb(68, 67, 142)
Deuteranopia (Green-blind)
#474A87 — rgb(71, 74, 135)
Tritanopia (Blue-blind)
#57756F — rgb(87, 117, 111)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(262, 63%, 42%);
text
color: hsl(262, 63%, 42%);
border
border: 2px solid hsl(262, 63%, 42%);
gradient light
background: linear-gradient(to right, hsl(262, 63%, 62%), hsl(262, 63%, 42%));
gradient dark
background: linear-gradient(to right, hsl(262, 63%, 42%), hsl(262, 63%, 22%))
hex
background-color: #5928AF;
tailwind
bg-[hsl(262,63%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(262, 63%, 42%, 0.4);
css variable
--color-primary: hsl(262, 63%, 42%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(262, 63%, 42%)?
HEX: #5928AF | RGB: rgb(89, 40, 175) | CMYK: 49%, 77%, 0%, 31% | HSV: 262°, 77%, 69%. Copy any format from the conversion table above.
What colors go well with #5928AF?
The complementary color is HSL(82, 63%, 42%). For a triadic harmony, use hues 262°, 22°, and 142°. For analogous combinations, try hues 232° and 292°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(262, 63%, 42%) in CSS?
As HSL: color: hsl(262, 63%, 42%); — As HEX: color: #5928AF; — As RGB: color: rgb(89, 40, 175); — Tailwind CSS: bg-[hsl(262,63%,42%)] — CSS variable: --color-primary: hsl(262, 63%, 42%);