HSL(262, 51%, 37%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(262,51%,37%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(262, 51%, 37%) | color: hsl(262, 51%, 37%) | |
| HEX | #522E8E | color: #522E8E | |
| RGB | rgb(82, 46, 142) | color: rgb(82, 46, 142) | |
| CMYK | cmyk(42%, 68%, 0%, 44%) | — | |
| HSV | hsv(263, 68%, 56%) | — | |
| HWB | hwb(263 18% 44%) | color: hwb(263 18% 44%) | |
| OKLCH | oklch(0.4015 0.1508 296.14) | color: oklch(0.4015 0.1508 296.14) | |
| Lab | lab(28.64 38.28 -47.42) | color: lab(28.64 38.28 -47.42) | |
| LCH | lch(28.64 60.94 308.91) | color: lch(28.64 60.94 308.91) |
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)
#424277 — rgb(66, 66, 119)
Deuteranopia (Green-blind)
#454771 — rgb(69, 71, 113)
Tritanopia (Blue-blind)
#506460 — rgb(80, 100, 96)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(262, 51%, 37%);
text
color: hsl(262, 51%, 37%);
border
border: 2px solid hsl(262, 51%, 37%);
gradient light
background: linear-gradient(to right, hsl(262, 51%, 57%), hsl(262, 51%, 37%));
gradient dark
background: linear-gradient(to right, hsl(262, 51%, 37%), hsl(262, 51%, 17%))
hex
background-color: #522E8E;
tailwind
bg-[hsl(262,51%,37%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(262, 51%, 37%, 0.4);
css variable
--color-primary: hsl(262, 51%, 37%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(262, 51%, 37%)?
HEX: #522E8E | RGB: rgb(82, 46, 142) | CMYK: 42%, 68%, 0%, 44% | HSV: 263°, 68%, 56%. Copy any format from the conversion table above.
What colors go well with #522E8E?
The complementary color is HSL(82, 51%, 37%). 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, 51%, 37%) in CSS?
As HSL: color: hsl(262, 51%, 37%); — As HEX: color: #522E8E; — As RGB: color: rgb(82, 46, 142); — Tailwind CSS: bg-[hsl(262,51%,37%)] — CSS variable: --color-primary: hsl(262, 51%, 37%);