HSL(258, 20%, 40%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(258,20%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(258, 20%, 40%) | color: hsl(258, 20%, 40%) | |
| HEX | #5E527A | color: #5E527A | |
| RGB | rgb(94, 82, 122) | color: rgb(94, 82, 122) | |
| CMYK | cmyk(23%, 33%, 0%, 52%) | — | |
| HSV | hsv(258, 33%, 48%) | — | |
| HWB | hwb(258 32% 52%) | color: hwb(258 32% 52%) | |
| OKLCH | oklch(0.4668 0.0651 297.61) | color: oklch(0.4668 0.0651 297.61) | |
| Lab | lab(37.52 14.06 -20.88) | color: lab(37.52 14.06 -20.88) | |
| LCH | lch(37.52 25.17 303.96) | color: lch(37.52 25.17 303.96) |
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)
#595970 — rgb(89, 89, 112)
Deuteranopia (Green-blind)
#5A5A6E — rgb(90, 90, 110)
Tritanopia (Blue-blind)
#5D6967 — rgb(93, 105, 103)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(258, 20%, 40%);
text
color: hsl(258, 20%, 40%);
border
border: 2px solid hsl(258, 20%, 40%);
gradient light
background: linear-gradient(to right, hsl(258, 20%, 60%), hsl(258, 20%, 40%));
gradient dark
background: linear-gradient(to right, hsl(258, 20%, 40%), hsl(258, 20%, 20%))
hex
background-color: #5E527A;
tailwind
bg-[hsl(258,20%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(258, 20%, 40%, 0.4);
css variable
--color-primary: hsl(258, 20%, 40%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(258, 20%, 40%)?
HEX: #5E527A | RGB: rgb(94, 82, 122) | CMYK: 23%, 33%, 0%, 52% | HSV: 258°, 33%, 48%. Copy any format from the conversion table above.
What colors go well with #5E527A?
The complementary color is HSL(78, 20%, 40%). For a triadic harmony, use hues 258°, 18°, and 138°. For analogous combinations, try hues 228° and 288°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(258, 20%, 40%) in CSS?
As HSL: color: hsl(258, 20%, 40%); — As HEX: color: #5E527A; — As RGB: color: rgb(94, 82, 122); — Tailwind CSS: bg-[hsl(258,20%,40%)] — CSS variable: --color-primary: hsl(258, 20%, 40%);