HSL(252, 86%, 74%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(252,86%,74%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(252, 86%, 74%) | color: hsl(252, 86%, 74%) | |
| HEX | #9A84F6 | color: #9A84F6 | |
| RGB | rgb(154, 132, 246) | color: rgb(154, 132, 246) | |
| CMYK | cmyk(37%, 46%, 0%, 4%) | — | |
| HSV | hsv(252, 46%, 96%) | — | |
| HWB | hwb(252 52% 4%) | color: hwb(252 52% 4%) | |
| OKLCH | oklch(0.6834 0.1639 290.25) | color: oklch(0.6834 0.1639 290.25) | |
| Lab | lab(61.68 34.2 -54.43) | color: lab(61.68 34.2 -54.43) | |
| LCH | lch(61.68 64.28 302.14) | color: lch(61.68 64.28 302.14) |
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)
#9090DA — rgb(144, 144, 218)
Deuteranopia (Green-blind)
#9293D4 — rgb(146, 147, 212)
Tritanopia (Blue-blind)
#99C5C0 — rgb(153, 197, 192)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(252, 86%, 74%);
text
color: hsl(252, 86%, 74%);
border
border: 2px solid hsl(252, 86%, 74%);
gradient light
background: linear-gradient(to right, hsl(252, 86%, 94%), hsl(252, 86%, 74%));
gradient dark
background: linear-gradient(to right, hsl(252, 86%, 74%), hsl(252, 86%, 54%))
hex
background-color: #9A84F6;
tailwind
bg-[hsl(252,86%,74%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(252, 86%, 74%, 0.4);
css variable
--color-primary: hsl(252, 86%, 74%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(252, 86%, 74%)?
HEX: #9A84F6 | RGB: rgb(154, 132, 246) | CMYK: 37%, 46%, 0%, 4% | HSV: 252°, 46%, 96%. Copy any format from the conversion table above.
What colors go well with #9A84F6?
The complementary color is HSL(72, 86%, 74%). 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, 86%, 74%) in CSS?
As HSL: color: hsl(252, 86%, 74%); — As HEX: color: #9A84F6; — As RGB: color: rgb(154, 132, 246); — Tailwind CSS: bg-[hsl(252,86%,74%)] — CSS variable: --color-primary: hsl(252, 86%, 74%);