HSL(255, 42%, 62%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(255,42%,62%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(255, 42%, 62%) | color: hsl(255, 42%, 62%) | |
| HEX | #8A75C7 | color: #8A75C7 | |
| RGB | rgb(138, 117, 199) | color: rgb(138, 117, 199) | |
| CMYK | cmyk(31%, 41%, 0%, 22%) | — | |
| HSV | hsv(255, 41%, 78%) | — | |
| HWB | hwb(255 46% 22%) | color: hwb(255 46% 22%) | |
| OKLCH | oklch(0.6164 0.1226 294.3) | color: oklch(0.6164 0.1226 294.3) | |
| Lab | lab(54.29 26.31 -39.89) | color: lab(54.29 26.31 -39.89) | |
| LCH | lch(54.29 47.79 303.41) | color: lch(54.29 47.79 303.41) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#8181B3 — rgb(129, 129, 179)
Deuteranopia (Green-blind)
#8284AE — rgb(130, 132, 174)
Tritanopia (Blue-blind)
#89A3A0 — rgb(137, 163, 160)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(255, 42%, 62%);
text
color: hsl(255, 42%, 62%);
border
border: 2px solid hsl(255, 42%, 62%);
gradient light
background: linear-gradient(to right, hsl(255, 42%, 82%), hsl(255, 42%, 62%));
gradient dark
background: linear-gradient(to right, hsl(255, 42%, 62%), hsl(255, 42%, 42%))
hex
background-color: #8A75C7;
tailwind
bg-[hsl(255,42%,62%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(255, 42%, 62%, 0.4);
css variable
--color-primary: hsl(255, 42%, 62%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(255, 42%, 62%)?
HEX: #8A75C7 | RGB: rgb(138, 117, 199) | CMYK: 31%, 41%, 0%, 22% | HSV: 255°, 41%, 78%. Copy any format from the conversion table above.
What colors go well with #8A75C7?
The complementary color is HSL(75, 42%, 62%). For a triadic harmony, use hues 255°, 15°, and 135°. For analogous combinations, try hues 225° and 285°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(255, 42%, 62%) in CSS?
As HSL: color: hsl(255, 42%, 62%); — As HEX: color: #8A75C7; — As RGB: color: rgb(138, 117, 199); — Tailwind CSS: bg-[hsl(255,42%,62%)] — CSS variable: --color-primary: hsl(255, 42%, 62%);