HSL(278, 50%, 36%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(278,50%,36%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(278, 50%, 36%) | color: hsl(278, 50%, 36%) | |
| HEX | #682E8A | color: #682E8A | |
| RGB | rgb(104, 46, 138) | color: rgb(104, 46, 138) | |
| CMYK | cmyk(25%, 67%, 0%, 46%) | — | |
| HSV | hsv(278, 67%, 54%) | — | |
| HWB | hwb(278 18% 46%) | color: hwb(278 18% 46%) | |
| OKLCH | oklch(0.4252 0.1511 310.55) | color: oklch(0.4252 0.1511 310.55) | |
| Lab | lab(31.19 42.25 -40.69) | color: lab(31.19 42.25 -40.69) | |
| LCH | lch(31.19 58.66 316.08) | color: lch(31.19 58.66 316.08) |
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)
#4F4E74 — rgb(79, 78, 116)
Deuteranopia (Green-blind)
#52576E — rgb(82, 87, 110)
Tritanopia (Blue-blind)
#65625E — rgb(101, 98, 94)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(278, 50%, 36%);
text
color: hsl(278, 50%, 36%);
border
border: 2px solid hsl(278, 50%, 36%);
gradient light
background: linear-gradient(to right, hsl(278, 50%, 56%), hsl(278, 50%, 36%));
gradient dark
background: linear-gradient(to right, hsl(278, 50%, 36%), hsl(278, 50%, 16%))
hex
background-color: #682E8A;
tailwind
bg-[hsl(278,50%,36%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(278, 50%, 36%, 0.4);
css variable
--color-primary: hsl(278, 50%, 36%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(278, 50%, 36%)?
HEX: #682E8A | RGB: rgb(104, 46, 138) | CMYK: 25%, 67%, 0%, 46% | HSV: 278°, 67%, 54%. Copy any format from the conversion table above.
What colors go well with #682E8A?
The complementary color is HSL(98, 50%, 36%). For a triadic harmony, use hues 278°, 38°, and 158°. For analogous combinations, try hues 248° and 308°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(278, 50%, 36%) in CSS?
As HSL: color: hsl(278, 50%, 36%); — As HEX: color: #682E8A; — As RGB: color: rgb(104, 46, 138); — Tailwind CSS: bg-[hsl(278,50%,36%)] — CSS variable: --color-primary: hsl(278, 50%, 36%);