HSL(242, 84%, 81%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(242,84%,81%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(242, 84%, 81%) | color: hsl(242, 84%, 81%) | |
| HEX | #A9A6F7 | color: #A9A6F7 | |
| RGB | rgb(169, 166, 247) | color: rgb(169, 166, 247) | |
| CMYK | cmyk(32%, 33%, 0%, 3%) | — | |
| HSV | hsv(242, 33%, 97%) | — | |
| HWB | hwb(242 65% 3%) | color: hwb(242 65% 3%) | |
| OKLCH | oklch(0.7587 0.1152 284.99) | color: oklch(0.7587 0.1152 284.99) | |
| Lab | lab(71.16 19.08 -39.96) | color: lab(71.16 19.08 -39.96) | |
| LCH | lch(71.16 44.28 295.52) | color: lch(71.16 44.28 295.52) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#A8A8E3 — rgb(168, 168, 227)
Deuteranopia (Green-blind)
#A8A8DF — rgb(168, 168, 223)
Tritanopia (Blue-blind)
#A9D4D1 — rgb(169, 212, 209)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(242, 84%, 81%);
text
color: hsl(242, 84%, 81%);
border
border: 2px solid hsl(242, 84%, 81%);
gradient light
background: linear-gradient(to right, hsl(242, 84%, 100%), hsl(242, 84%, 81%));
gradient dark
background: linear-gradient(to right, hsl(242, 84%, 81%), hsl(242, 84%, 61%))
hex
background-color: #A9A6F7;
tailwind
bg-[hsl(242,84%,81%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(242, 84%, 81%, 0.4);
css variable
--color-primary: hsl(242, 84%, 81%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(242, 84%, 81%)?
HEX: #A9A6F7 | RGB: rgb(169, 166, 247) | CMYK: 32%, 33%, 0%, 3% | HSV: 242°, 33%, 97%. Copy any format from the conversion table above.
What colors go well with #A9A6F7?
The complementary color is HSL(62, 84%, 81%). For a triadic harmony, use hues 242°, 2°, and 122°. For analogous combinations, try hues 212° and 272°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(242, 84%, 81%) in CSS?
As HSL: color: hsl(242, 84%, 81%); — As HEX: color: #A9A6F7; — As RGB: color: rgb(169, 166, 247); — Tailwind CSS: bg-[hsl(242,84%,81%)] — CSS variable: --color-primary: hsl(242, 84%, 81%);