HSL(248, 57%, 78%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(248,57%,78%)]

Color Conversions

Format Value CSS Usage
HSL hsl(248, 57%, 78%) color: hsl(248, 57%, 78%)
HEX #AFA7E7 color: #AFA7E7
RGB rgb(175, 167, 231) color: rgb(175, 167, 231)
CMYK cmyk(24%, 28%, 0%, 9%)
HSV hsv(248, 28%, 91%)
HWB hwb(248 66% 9%) color: hwb(248 66% 9%)
OKLCH oklch(0.7582 0.0912 289.76) color: oklch(0.7582 0.0912 289.76)
Lab lab(71.23 16.35 -31.1) color: lab(71.23 16.35 -31.1)
LCH lch(71.23 35.14 297.73) color: lch(71.23 35.14 297.73)

Color Theory

Complementary

Triadic

Analogous

Tetradic (Square)

Split-Complementary

Accessibility (WCAG)

White text on color

Black text on color

Color on white bg

Colored text

Contrast Ratios

vs White 2.21:1
vs Black 9.5:1

AA Normal (4.5:1)

on White: FAIL ✗ on Black: PASS ✓

AA Large (3:1)

on White: FAIL ✗ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#ACABD8 — rgb(172, 171, 216)

Deuteranopia (Green-blind)

#ACADD4 — rgb(172, 173, 212)

Tritanopia (Blue-blind)

#AFCBC9 — rgb(175, 203, 201)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(248, 57%, 78%);

text

color: hsl(248, 57%, 78%);

border

border: 2px solid hsl(248, 57%, 78%);

gradient light

background: linear-gradient(to right, hsl(248, 57%, 98%), hsl(248, 57%, 78%));

gradient dark

background: linear-gradient(to right, hsl(248, 57%, 78%), hsl(248, 57%, 58%))

hex

background-color: #AFA7E7;

tailwind

bg-[hsl(248,57%,78%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(248, 57%, 78%, 0.4);

css variable

--color-primary: hsl(248, 57%, 78%);

Related Colors

Use Cases for Blue

Corporate branding Trust signals Tech products Social media Primary buttons

Frequently Asked Questions

What are all the color codes for HSL(248, 57%, 78%)?

HEX: #AFA7E7 | RGB: rgb(175, 167, 231) | CMYK: 24%, 28%, 0%, 9% | HSV: 248°, 28%, 91%. Copy any format from the conversion table above.

What colors go well with #AFA7E7?

The complementary color is HSL(68, 57%, 78%). For a triadic harmony, use hues 248°, 8°, and 128°. For analogous combinations, try hues 218° and 278°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(248, 57%, 78%) in CSS?

As HSL: color: hsl(248, 57%, 78%); — As HEX: color: #AFA7E7; — As RGB: color: rgb(175, 167, 231); — Tailwind CSS: bg-[hsl(248,57%,78%)] — CSS variable: --color-primary: hsl(248, 57%, 78%);