HSL(282, 40%, 74%)

Indigo — Indigo color

Adjust Color

Color Information

Color Name

Indigo

Color Family

Indigo

Warm / Cool

🔵 Cool

Temperature

6500K

CSS Class

bg-[hsl(282,40%,74%)]

Color Conversions

Format Value CSS Usage
HSL hsl(282, 40%, 74%) color: hsl(282, 40%, 74%)
HEX #C7A2D7 color: #C7A2D7
RGB rgb(199, 162, 215) color: rgb(199, 162, 215)
CMYK cmyk(7%, 25%, 0%, 16%)
HSV hsv(282, 25%, 84%)
HWB hwb(282 63% 16%) color: hwb(282 63% 16%)
OKLCH oklch(0.7631 0.0844 315.55) color: oklch(0.7631 0.0844 315.55)
Lab lab(71.48 23.13 -21.78) color: lab(71.48 23.13 -21.78)
LCH lch(71.48 31.77 316.72) color: lch(71.48 31.77 316.72)

Color Theory

Complementary

Triadic

Analogous

Tetradic (Square)

Split-Complementary

Accessibility (WCAG)

White text on color

Black text on color

Color on white bg

Colored text

Contrast Ratios

vs White 2.19:1
vs Black 9.58:1

AA Normal (4.5:1)

on White: FAIL ✗ on Black: PASS ✓

AA Large (3:1)

on White: FAIL ✗ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#B7B7CA — rgb(183, 183, 202)

Deuteranopia (Green-blind)

#B9BCC7 — rgb(185, 188, 199)

Tritanopia (Blue-blind)

#C5C0BE — rgb(197, 192, 190)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(282, 40%, 74%);

text

color: hsl(282, 40%, 74%);

border

border: 2px solid hsl(282, 40%, 74%);

gradient light

background: linear-gradient(to right, hsl(282, 40%, 94%), hsl(282, 40%, 74%));

gradient dark

background: linear-gradient(to right, hsl(282, 40%, 74%), hsl(282, 40%, 54%))

hex

background-color: #C7A2D7;

tailwind

bg-[hsl(282,40%,74%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(282, 40%, 74%, 0.4);

css variable

--color-primary: hsl(282, 40%, 74%);

Related Colors

Use Cases for Indigo

UI elements Web design Branding Graphic design Print design

Frequently Asked Questions

What are all the color codes for HSL(282, 40%, 74%)?

HEX: #C7A2D7 | RGB: rgb(199, 162, 215) | CMYK: 7%, 25%, 0%, 16% | HSV: 282°, 25%, 84%. Copy any format from the conversion table above.

What colors go well with #C7A2D7?

The complementary color is HSL(102, 40%, 74%). For a triadic harmony, use hues 282°, 42°, and 162°. For analogous combinations, try hues 252° and 312°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(282, 40%, 74%) in CSS?

As HSL: color: hsl(282, 40%, 74%); — As HEX: color: #C7A2D7; — As RGB: color: rgb(199, 162, 215); — Tailwind CSS: bg-[hsl(282,40%,74%)] — CSS variable: --color-primary: hsl(282, 40%, 74%);