HSL(281, 70%, 54%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(281,70%,54%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(281, 70%, 54%) | color: hsl(281, 70%, 54%) | |
| HEX | #A838DC | color: #A838DC | |
| RGB | rgb(168, 56, 220) | color: rgb(168, 56, 220) | |
| CMYK | cmyk(24%, 75%, 0%, 14%) | — | |
| HSV | hsv(281, 75%, 86%) | — | |
| HWB | hwb(281 22% 14%) | color: hwb(281 22% 14%) | |
| OKLCH | oklch(0.5773 0.24 312.36) | color: oklch(0.5773 0.24 312.36) | |
| Lab | lab(47.39 68.99 -62.69) | color: lab(47.39 68.99 -62.69) | |
| LCH | lch(47.39 93.22 317.74) | color: lch(47.39 93.22 317.74) |
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)
#7876B4 — rgb(120, 118, 180)
Deuteranopia (Green-blind)
#7E86AB — rgb(126, 134, 171)
Tritanopia (Blue-blind)
#A2958E — rgb(162, 149, 142)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(281, 70%, 54%);
text
color: hsl(281, 70%, 54%);
border
border: 2px solid hsl(281, 70%, 54%);
gradient light
background: linear-gradient(to right, hsl(281, 70%, 74%), hsl(281, 70%, 54%));
gradient dark
background: linear-gradient(to right, hsl(281, 70%, 54%), hsl(281, 70%, 34%))
hex
background-color: #A838DC;
tailwind
bg-[hsl(281,70%,54%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(281, 70%, 54%, 0.4);
css variable
--color-primary: hsl(281, 70%, 54%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(281, 70%, 54%)?
HEX: #A838DC | RGB: rgb(168, 56, 220) | CMYK: 24%, 75%, 0%, 14% | HSV: 281°, 75%, 86%. Copy any format from the conversion table above.
What colors go well with #A838DC?
The complementary color is HSL(101, 70%, 54%). For a triadic harmony, use hues 281°, 41°, and 161°. For analogous combinations, try hues 251° and 311°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(281, 70%, 54%) in CSS?
As HSL: color: hsl(281, 70%, 54%); — As HEX: color: #A838DC; — As RGB: color: rgb(168, 56, 220); — Tailwind CSS: bg-[hsl(281,70%,54%)] — CSS variable: --color-primary: hsl(281, 70%, 54%);