HSL(241, 98%, 79%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(241,98%,79%)]

Color Conversions

Format Value CSS Usage
HSL hsl(241, 98%, 79%) color: hsl(241, 98%, 79%)
HEX #9795FE color: #9795FE
RGB rgb(151, 149, 254) color: rgb(151, 149, 254)
CMYK cmyk(41%, 41%, 0%, 0%)
HSV hsv(241, 41%, 100%)
HWB hwb(241 59% 0%) color: hwb(241 59% 0%)
OKLCH oklch(0.7163 0.1506 282.77) color: oklch(0.7163 0.1506 282.77)
Lab lab(65.93 25.87 -52.09) color: lab(65.93 25.87 -52.09)
LCH lch(65.93 58.16 296.41) color: lch(65.93 58.16 296.41)

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.61:1
vs Black 8.05: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)

#9696E5 — rgb(150, 150, 229)

Deuteranopia (Green-blind)

#9696DF — rgb(150, 150, 223)

Tritanopia (Blue-blind)

#97D1CC — rgb(151, 209, 204)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(241, 98%, 79%);

text

color: hsl(241, 98%, 79%);

border

border: 2px solid hsl(241, 98%, 79%);

gradient light

background: linear-gradient(to right, hsl(241, 98%, 99%), hsl(241, 98%, 79%));

gradient dark

background: linear-gradient(to right, hsl(241, 98%, 79%), hsl(241, 98%, 59%))

hex

background-color: #9795FE;

tailwind

bg-[hsl(241,98%,79%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(241, 98%, 79%, 0.4);

css variable

--color-primary: hsl(241, 98%, 79%);

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(241, 98%, 79%)?

HEX: #9795FE | RGB: rgb(151, 149, 254) | CMYK: 41%, 41%, 0%, 0% | HSV: 241°, 41%, 100%. Copy any format from the conversion table above.

What colors go well with #9795FE?

The complementary color is HSL(61, 98%, 79%). For a triadic harmony, use hues 241°, 1°, and 121°. For analogous combinations, try hues 211° and 271°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(241, 98%, 79%) in CSS?

As HSL: color: hsl(241, 98%, 79%); — As HEX: color: #9795FE; — As RGB: color: rgb(151, 149, 254); — Tailwind CSS: bg-[hsl(241,98%,79%)] — CSS variable: --color-primary: hsl(241, 98%, 79%);