HSL(252, 84%, 81%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(252,84%,81%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(252, 84%, 81%) | color: hsl(252, 84%, 81%) | |
| HEX | #B6A6F7 | color: #B6A6F7 | |
| RGB | rgb(182, 166, 247) | color: rgb(182, 166, 247) | |
| CMYK | cmyk(26%, 33%, 0%, 3%) | — | |
| HSV | hsv(252, 33%, 97%) | — | |
| HWB | hwb(252 65% 3%) | color: hwb(252 65% 3%) | |
| OKLCH | oklch(0.769 0.1151 292.55) | color: oklch(0.769 0.1151 292.55) | |
| Lab | lab(72.18 22.75 -38.29) | color: lab(72.18 22.75 -38.29) | |
| LCH | lch(72.18 44.54 300.72) | color: lch(72.18 44.54 300.72) |
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)
#AFAFE3 — rgb(175, 175, 227)
Deuteranopia (Green-blind)
#B0B1DF — rgb(176, 177, 223)
Tritanopia (Blue-blind)
#B5D4D1 — rgb(181, 212, 209)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(252, 84%, 81%);
text
color: hsl(252, 84%, 81%);
border
border: 2px solid hsl(252, 84%, 81%);
gradient light
background: linear-gradient(to right, hsl(252, 84%, 100%), hsl(252, 84%, 81%));
gradient dark
background: linear-gradient(to right, hsl(252, 84%, 81%), hsl(252, 84%, 61%))
hex
background-color: #B6A6F7;
tailwind
bg-[hsl(252,84%,81%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(252, 84%, 81%, 0.4);
css variable
--color-primary: hsl(252, 84%, 81%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(252, 84%, 81%)?
HEX: #B6A6F7 | RGB: rgb(182, 166, 247) | CMYK: 26%, 33%, 0%, 3% | HSV: 252°, 33%, 97%. Copy any format from the conversion table above.
What colors go well with #B6A6F7?
The complementary color is HSL(72, 84%, 81%). For a triadic harmony, use hues 252°, 12°, and 132°. For analogous combinations, try hues 222° and 282°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(252, 84%, 81%) in CSS?
As HSL: color: hsl(252, 84%, 81%); — As HEX: color: #B6A6F7; — As RGB: color: rgb(182, 166, 247); — Tailwind CSS: bg-[hsl(252,84%,81%)] — CSS variable: --color-primary: hsl(252, 84%, 81%);