HSL(251, 26%, 56%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(251,26%,56%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(251, 26%, 56%) | color: hsl(251, 26%, 56%) | |
| HEX | #7C72AC | color: #7C72AC | |
| RGB | rgb(124, 114, 172) | color: rgb(124, 114, 172) | |
| CMYK | cmyk(28%, 34%, 0%, 33%) | — | |
| HSV | hsv(250, 34%, 67%) | — | |
| HWB | hwb(250 44% 33%) | color: hwb(250 44% 33%) | |
| OKLCH | oklch(0.5845 0.0881 291.33) | color: oklch(0.5845 0.0881 291.33) | |
| Lab | lab(51.03 17 -29.55) | color: lab(51.03 17 -29.55) | |
| LCH | lch(51.03 34.09 299.91) | color: lch(51.03 34.09 299.91) |
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)
#78789E — rgb(120, 120, 158)
Deuteranopia (Green-blind)
#78799B — rgb(120, 121, 155)
Tritanopia (Blue-blind)
#7C9390 — rgb(124, 147, 144)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(251, 26%, 56%);
text
color: hsl(251, 26%, 56%);
border
border: 2px solid hsl(251, 26%, 56%);
gradient light
background: linear-gradient(to right, hsl(251, 26%, 76%), hsl(251, 26%, 56%));
gradient dark
background: linear-gradient(to right, hsl(251, 26%, 56%), hsl(251, 26%, 36%))
hex
background-color: #7C72AC;
tailwind
bg-[hsl(251,26%,56%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(251, 26%, 56%, 0.4);
css variable
--color-primary: hsl(251, 26%, 56%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(251, 26%, 56%)?
HEX: #7C72AC | RGB: rgb(124, 114, 172) | CMYK: 28%, 34%, 0%, 33% | HSV: 250°, 34%, 67%. Copy any format from the conversion table above.
What colors go well with #7C72AC?
The complementary color is HSL(71, 26%, 56%). For a triadic harmony, use hues 251°, 11°, and 131°. For analogous combinations, try hues 221° and 281°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(251, 26%, 56%) in CSS?
As HSL: color: hsl(251, 26%, 56%); — As HEX: color: #7C72AC; — As RGB: color: rgb(124, 114, 172); — Tailwind CSS: bg-[hsl(251,26%,56%)] — CSS variable: --color-primary: hsl(251, 26%, 56%);