HSL(268, 40%, 54%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(268,40%,54%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(268, 40%, 54%) | color: hsl(268, 40%, 54%) | |
| HEX | #875BB9 | color: #875BB9 | |
| RGB | rgb(135, 91, 185) | color: rgb(135, 91, 185) | |
| CMYK | cmyk(27%, 51%, 0%, 27%) | — | |
| HSV | hsv(268, 51%, 73%) | — | |
| HWB | hwb(268 36% 27%) | color: hwb(268 36% 27%) | |
| OKLCH | oklch(0.5598 0.1456 303.67) | color: oklch(0.5598 0.1456 303.67) | |
| Lab | lab(47.15 37.04 -43.14) | color: lab(47.15 37.04 -43.14) | |
| LCH | lch(47.15 56.86 310.65) | color: lch(47.15 56.86 310.65) |
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)
#7474A2 — rgb(116, 116, 162)
Deuteranopia (Green-blind)
#777A9D — rgb(119, 122, 157)
Tritanopia (Blue-blind)
#85908C — rgb(133, 144, 140)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(268, 40%, 54%);
text
color: hsl(268, 40%, 54%);
border
border: 2px solid hsl(268, 40%, 54%);
gradient light
background: linear-gradient(to right, hsl(268, 40%, 74%), hsl(268, 40%, 54%));
gradient dark
background: linear-gradient(to right, hsl(268, 40%, 54%), hsl(268, 40%, 34%))
hex
background-color: #875BB9;
tailwind
bg-[hsl(268,40%,54%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(268, 40%, 54%, 0.4);
css variable
--color-primary: hsl(268, 40%, 54%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(268, 40%, 54%)?
HEX: #875BB9 | RGB: rgb(135, 91, 185) | CMYK: 27%, 51%, 0%, 27% | HSV: 268°, 51%, 73%. Copy any format from the conversion table above.
What colors go well with #875BB9?
The complementary color is HSL(88, 40%, 54%). For a triadic harmony, use hues 268°, 28°, and 148°. For analogous combinations, try hues 238° and 298°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(268, 40%, 54%) in CSS?
As HSL: color: hsl(268, 40%, 54%); — As HEX: color: #875BB9; — As RGB: color: rgb(135, 91, 185); — Tailwind CSS: bg-[hsl(268,40%,54%)] — CSS variable: --color-primary: hsl(268, 40%, 54%);