HSL(262, 74%, 52%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(262,74%,52%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(262, 74%, 52%) | color: hsl(262, 74%, 52%) | |
| HEX | #6C2ADF | color: #6C2ADF | |
| RGB | rgb(108, 42, 223) | color: rgb(108, 42, 223) | |
| CMYK | cmyk(52%, 81%, 0%, 13%) | — | |
| HSV | hsv(262, 81%, 87%) | — | |
| HWB | hwb(262 17% 13%) | color: hwb(262 17% 13%) | |
| OKLCH | oklch(0.497 0.2457 290.96) | color: oklch(0.497 0.2457 290.96) | |
| Lab | lab(38.15 65.62 -79.82) | color: lab(38.15 65.62 -79.82) | |
| LCH | lch(38.15 103.33 309.42) | color: lch(38.15 103.33 309.42) |
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)
#4F4FB3 — rgb(79, 79, 179)
Deuteranopia (Green-blind)
#5358A9 — rgb(83, 88, 169)
Tritanopia (Blue-blind)
#699189 — rgb(105, 145, 137)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(262, 74%, 52%);
text
color: hsl(262, 74%, 52%);
border
border: 2px solid hsl(262, 74%, 52%);
gradient light
background: linear-gradient(to right, hsl(262, 74%, 72%), hsl(262, 74%, 52%));
gradient dark
background: linear-gradient(to right, hsl(262, 74%, 52%), hsl(262, 74%, 32%))
hex
background-color: #6C2ADF;
tailwind
bg-[hsl(262,74%,52%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(262, 74%, 52%, 0.4);
css variable
--color-primary: hsl(262, 74%, 52%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(262, 74%, 52%)?
HEX: #6C2ADF | RGB: rgb(108, 42, 223) | CMYK: 52%, 81%, 0%, 13% | HSV: 262°, 81%, 87%. Copy any format from the conversion table above.
What colors go well with #6C2ADF?
The complementary color is HSL(82, 74%, 52%). 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, 74%, 52%) in CSS?
As HSL: color: hsl(262, 74%, 52%); — As HEX: color: #6C2ADF; — As RGB: color: rgb(108, 42, 223); — Tailwind CSS: bg-[hsl(262,74%,52%)] — CSS variable: --color-primary: hsl(262, 74%, 52%);