Blue color · CSS named color

Medium Slate Blue Color Code: #7B68EE

Medium Slate Blue is a medium-light, vivid blue color with the hexadecimal value #7B68EE. In RGB it is 123, 104, 238 and in HSL it is 249°, 80%, 67%. Black text reads best on it (5.05:1 contrast).

Medium Slate Blue color values

HEX #7B68EE
RGB rgb(123, 104, 238)
HSL hsl(249, 80%, 67%)
HSV 249, 56%, 93%
HWB hwb(249 41% 7%)
CMYK 48%, 56%, 0%, 7%
Decimal 8087790
CSS keyword mediumslateblue
67%HSL lightness (medium-light)
80%HSL saturation (vivid)
249°Hue angle (blue)
0.203Relative luminance

CMYK is a standard screen-to-print conversion. Printed results depend on inks, paper and color profiles.

What is Medium Slate Blue?

Medium Slate Blue is one of the named colors defined by the CSS Color specifications (keyword “mediumslateblue”), so every modern browser understands it without a hex code.

Its hue angle of 249° places it in the blue part of the color wheel, with 80% saturation (vivid) and 67% lightness (medium-light). It is a cool color.

Compared with the other blue colors in the Aqeeb Studio library, it is lighter than 80% of them and more saturated than 42% of them.

Its relative luminance is 0.203, which makes it a mid-tone color. That is above the 0.179 crossover point at which black and white text have equal contrast, so black text has the advantage.

Medium Slate Blue counts as a light color: its HSL lightness is 67% and its relative luminance is 0.203. Black text reads best on it (5.05:1 contrast).

Text contrast on Medium Slate Blue

WCAG contrast of white and black text on Medium Slate Blue
TextPreviewRatioAA normalAA largeAAA normalAAA large
White text Sample text 4.15:1 Limited Fail Pass Fail Fail
Black text Sample text 5.05:1 Good Pass Pass Fail Pass

Ratios use the WCAG 2 formula and are truncated, never rounded up. Test any pair with the contrast checker.

Colors that go with Medium Slate Blue

Complementary color

Complementary colors sit directly opposite each other on the color wheel (180° apart). They give the strongest hue contrast, which suits calls to action and accents.

Analogous colors

Analogous colors are neighbors on the wheel, 30° either side of the base hue. They blend smoothly and are easy to combine in backgrounds, gradients and illustrations.

Triadic colors

A triadic scheme uses three hues spaced 120° apart. It is lively yet balanced, and works best when one color leads and the other two act as accents.

Split-complementary colors

Split-complementary keeps the base color and uses the two colors on either side of its complement (150° and 210°). The contrast is strong but gentler than a direct complement.

Tetradic colors

A tetradic (rectangle) scheme combines two complementary pairs at 0°, 60°, 180° and 240°. It offers variety but needs one dominant color to stay balanced.

Monochromatic variants

Monochromatic variants keep the same hue and saturation and only change lightness, which makes them dependable for UI scales and subtle layered designs.

#2B14B3#2B14B3
#4328E7#4328E7
#7B68EE#7B68EE
#B3A8F5#B3A8F5
#EBE8FC#EBE8FC

A “≈” before a name means the exact harmony color has no named match, so the link goes to the closest named color.

Tints and shades of Medium Slate Blue

Lighter tints (mixed with white)

Darker shades (mixed with black)

Select any swatch to copy its HEX code. Build longer scales with the tints and shades tool.

Where to use Medium Slate Blue

  • Card, highlight and section backgrounds with dark text (5.05:1 contrast with black)
  • Accents that need to stand out: call-to-action buttons, charts and illustrations
  • Large headings, icons and graphics, where a 3:1 contrast ratio is enough
  • Corporate, finance and software branding
  • Headers and navigation bars
  • Charts and dashboards

Medium Slate Blue appears in these curated palettes: Blue Hour (Blue Color Palettes), Electric (Vibrant Color Palettes), Friendly App (UI Color Palettes).

Use Medium Slate Blue in CSS

:root {
  --color-medium-slate-blue: #7B68EE;
}

.element {
  color: var(--color-medium-slate-blue);
  background-color: #7B68EE;
  border: 2px solid #7B68EE;
}

Questions about Medium Slate Blue

What is the HEX code for Medium Slate Blue?

Medium Slate Blue is #7B68EE.

What is the RGB value of Medium Slate Blue?

The RGB value of Medium Slate Blue is 123, 104, 238: 123 red, 104 green and 238 blue on a 0–255 scale, written rgb(123, 104, 238) in CSS.

What is the HSL value of Medium Slate Blue?

The HSL value of Medium Slate Blue is 249°, 80%, 67% (hue, saturation, lightness), written hsl(249, 80%, 67%) in CSS.

What is the CMYK value of Medium Slate Blue?

A standard conversion gives about C 48%, M 56%, Y 0%, K 7%. Real print results depend on the inks, paper and color profile, so treat CMYK here as a reference value.

Is Medium Slate Blue a light or dark color?

Medium Slate Blue counts as a light color: its HSL lightness is 67% and its relative luminance is 0.203. Black text reads best on it (5.05:1 contrast).

How does Medium Slate Blue look with white text?

White text on Medium Slate Blue has a contrast ratio of 4.15:1, rated Limited. It does not reach WCAG AA for normal text; use large text only.

How does Medium Slate Blue look with black text?

Black text on Medium Slate Blue has a contrast ratio of 5.05:1, rated Good. It meets WCAG AA for normal text.

What colors go well with Medium Slate Blue?

Banana is its complementary color, and Cornflower Blue sits beside it as an analogous color. Lighter and darker variants of the same hue also work well for monochromatic palettes.

Where can Medium Slate Blue be used?

It suits card, highlight and section backgrounds with dark text (5.05:1 contrast with black); accents that need to stand out: call-to-action buttons, charts and illustrations; large headings, icons and graphics, where a 3:1 contrast ratio is enough.

How do I use Medium Slate Blue in CSS?

Use color: #7B68EE; for text, background-color: #7B68EE; for fills, or define a custom property such as --color-medium-slate-blue: #7B68EE; and reuse it with var(--color-medium-slate-blue).

About this color page

CSS named color (W3C CSS Color Module). Values are calculated from the HEX code; color names are labels, not trademarks or standards unless stated. Screens render colors differently, so always check important colors on your own device. See the disclaimer.