HSL(252, 38%, 62%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(252,38%,62%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(252, 38%, 62%) | color: hsl(252, 38%, 62%) | |
| HEX | #8879C3 | color: #8879C3 | |
| RGB | rgb(136, 121, 195) | color: rgb(136, 121, 195) | |
| CMYK | cmyk(30%, 38%, 0%, 24%) | — | |
| HSV | hsv(252, 38%, 76%) | — | |
| HWB | hwb(252 47% 24%) | color: hwb(252 47% 24%) | |
| OKLCH | oklch(0.6201 0.1105 292.17) | color: oklch(0.6201 0.1105 292.17) | |
| Lab | lab(54.92 22.35 -36.64) | color: lab(54.92 22.35 -36.64) | |
| LCH | lch(54.92 42.92 301.38) | color: lch(54.92 42.92 301.38) |
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)
#8281B1 — rgb(130, 129, 177)
Deuteranopia (Green-blind)
#8284AD — rgb(130, 132, 173)
Tritanopia (Blue-blind)
#87A3A0 — rgb(135, 163, 160)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(252, 38%, 62%);
text
color: hsl(252, 38%, 62%);
border
border: 2px solid hsl(252, 38%, 62%);
gradient light
background: linear-gradient(to right, hsl(252, 38%, 82%), hsl(252, 38%, 62%));
gradient dark
background: linear-gradient(to right, hsl(252, 38%, 62%), hsl(252, 38%, 42%))
hex
background-color: #8879C3;
tailwind
bg-[hsl(252,38%,62%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(252, 38%, 62%, 0.4);
css variable
--color-primary: hsl(252, 38%, 62%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(252, 38%, 62%)?
HEX: #8879C3 | RGB: rgb(136, 121, 195) | CMYK: 30%, 38%, 0%, 24% | HSV: 252°, 38%, 76%. Copy any format from the conversion table above.
What colors go well with #8879C3?
The complementary color is HSL(72, 38%, 62%). 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, 38%, 62%) in CSS?
As HSL: color: hsl(252, 38%, 62%); — As HEX: color: #8879C3; — As RGB: color: rgb(136, 121, 195); — Tailwind CSS: bg-[hsl(252,38%,62%)] — CSS variable: --color-primary: hsl(252, 38%, 62%);