Skip to content

Medium Slate Blue

Hex #7B68EE, rgb(123 104 238). A blue CSS named color.

Open in palette generator

Medium Slate Blue color codes

Click any value to copy it.

HEX
RGB
HSL
HSV
HWB
CMYK
OKLCH
OKLab
Lab
LCH
CSS keyword

About Medium Slate Blue

Medium Slate Blue is a medium saturated blue with the hex code #7B68EE. In RGB it is made of 123 red, 104 green and 238 blue; in HSL its hue is 249°, with 80% saturation and 67% lightness. Its perceptual lightness (OKLCH L) is 60.4%.

It is a CSS named color, so you can write "mediumslateblue" anywhere CSS accepts a color. Against white it has a contrast ratio of 4.15:1 and against black 5.06:1, so black text reads better on it and passes WCAG AA for normal text.

Tints, shades and tones

Medium Slate Blue mixed step by step with white, black and middle gray (#808080).

Tints (with white)

Shades (with black)

Tones (with gray)

Medium Slate Blue 50-950 scale

A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.

Colors that go with Medium Slate Blue

Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.

Complementary

Split complementary

Square

Monochromatic

Contrast and readability

WCAG 2 contrast of Medium Slate Blue with white and black. The readable text color on Medium Slate Blue is black.

Medium Slate Blue textSmall text on white

On white4.15:1

  • AA fail
  • AA Large pass
  • AAA fail
  • UI 3:1 pass

APCA Lc 68

Medium Slate Blue textSmall text on black

On black5.06:1

  • AA pass
  • AA Large pass
  • AAA fail
  • UI 3:1 pass

APCA Lc -33

Black text on Medium Slate Blue (#000000)

Test any pair in the contrast checker.

Color blindness preview

How Medium Slate Blue appears with each type of color vision deficiency (simulated with the Machado model).

  • Protanopia#0280F2
  • Deuteranopia#0078EB
  • Tritanopia#5286A1
  • Protanomaly#407AF1
  • Deuteranomaly#3B75EC
  • Tritanomaly#7076CF
  • Achromatopsia#7C7C7C

Colors similar to Medium Slate Blue

The closest named colors by perceptual difference (OKLab).

Use Medium Slate Blue in CSS and Tailwind

CSS
.medium-slate-blue {
  color: mediumslateblue; /* #7B68EE */
  background-color: rgb(123 104 238);
  border-color: oklch(60.4% 0.194 285.5);
}
Tailwind CSS
/* Tailwind CSS v4: bg-medium-slate-blue-500, text-medium-slate-blue-700... */
@theme {
  --color-medium-slate-blue-50: #F9F9FF;
  --color-medium-slate-blue-100: #EDEDFF;
  --color-medium-slate-blue-200: #DBDBFF;
  --color-medium-slate-blue-300: #C0BFFF;
  --color-medium-slate-blue-400: #9F97FF;
  --color-medium-slate-blue-500: #8B7CFF;
  --color-medium-slate-blue-600: #7B68EE;
  --color-medium-slate-blue-700: #6251C2;
  --color-medium-slate-blue-800: #4D4099;
  --color-medium-slate-blue-900: #3D347B;
  --color-medium-slate-blue-950: #150C38;
}

<!-- or the exact color, no config -->
<div class="bg-[#7B68EE] text-[#000000]">…</div>