HSL(262, 89%, 64%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(262,89%,64%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(262, 89%, 64%) | color: hsl(262, 89%, 64%) | |
| HEX | #8D51F5 | color: #8D51F5 | |
| RGB | rgb(141, 81, 245) | color: rgb(141, 81, 245) | |
| CMYK | cmyk(42%, 67%, 0%, 4%) | — | |
| HSV | hsv(262, 67%, 96%) | — | |
| HWB | hwb(262 32% 4%) | color: hwb(262 32% 4%) | |
| OKLCH | oklch(0.5919 0.2314 295.16) | color: oklch(0.5919 0.2314 295.16) | |
| Lab | lab(49.66 58.92 -73.27) | color: lab(49.66 58.92 -73.27) | |
| LCH | lch(49.66 94.02 308.8) | color: lch(49.66 94.02 308.8) |
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)
#7372CD — rgb(115, 114, 205)
Deuteranopia (Green-blind)
#777BC4 — rgb(119, 123, 196)
Tritanopia (Blue-blind)
#8AAEA7 — rgb(138, 174, 167)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(262, 89%, 64%);
text
color: hsl(262, 89%, 64%);
border
border: 2px solid hsl(262, 89%, 64%);
gradient light
background: linear-gradient(to right, hsl(262, 89%, 84%), hsl(262, 89%, 64%));
gradient dark
background: linear-gradient(to right, hsl(262, 89%, 64%), hsl(262, 89%, 44%))
hex
background-color: #8D51F5;
tailwind
bg-[hsl(262,89%,64%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(262, 89%, 64%, 0.4);
css variable
--color-primary: hsl(262, 89%, 64%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(262, 89%, 64%)?
HEX: #8D51F5 | RGB: rgb(141, 81, 245) | CMYK: 42%, 67%, 0%, 4% | HSV: 262°, 67%, 96%. Copy any format from the conversion table above.
What colors go well with #8D51F5?
The complementary color is HSL(82, 89%, 64%). 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, 89%, 64%) in CSS?
As HSL: color: hsl(262, 89%, 64%); — As HEX: color: #8D51F5; — As RGB: color: rgb(141, 81, 245); — Tailwind CSS: bg-[hsl(262,89%,64%)] — CSS variable: --color-primary: hsl(262, 89%, 64%);