Free Accessible CSS Gradient Generator

← All Colors
#7B68EE Medium Slate Blue

Medium Slate Blue Hex Code #7B68EE

Medium Slate Blue is a medium, strong purple with the hex code #7B68EE. In RGB it is 123, 104, 238, and in HSL it is 249°, 80%, 67%. It is one of the 148 named colors in CSS, so you can write “mediumslateblue” instead of the hex code.

HEX
#7B68EE
RGB
rgb(123, 104, 238)
HSL
hsl(249, 80%, 67%)
HSV
hsv(249°, 56%, 93%)
CMYK
cmyk(48%, 56%, 0%, 7%)
CSS name
mediumslateblue

CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.

About Medium Slate Blue

On a white background Medium Slate Blue has a contrast ratio of 4.15:1 (AA Large), and on black 5.06:1 (AA). Black text is the better choice on top of it.

It sits on the cool side of the color wheel, a range that tends to feel calm and appears to recede.

Purple combines the calm of blue with the energy of red. It reads as creative and premium, and is often used by design, media and beauty brands.

Shades and tints of Medium Slate Blue

Tints mix Medium Slate Blue with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.

Color harmonies for Medium Slate Blue

These schemes are calculated from Medium Slate Blue on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.

Analogous

Open in the color wheel

Triadic

Open in the color wheel

Tetradic

Open in the color wheel

Square

Open in the color wheel

On the artist’s RYB wheel, the complement of Medium Slate Blue is #EECB68, close to the named color Khaki.

Medium Slate Blue contrast and accessibility

WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Medium Slate Blue scores against white and black.

Contrast of Medium Slate Blue with white and black
AgainstRatioAA normalAA largeAAA normalAAA large
White (#ffffff) 4.15:1 ✕ Fail ✓ Pass ✕ Fail ✕ Fail
Black (#000000) 5.06:1 ✓ Pass ✓ Pass ✕ Fail ✓ Pass
Aa White text on Medium Slate Blue4.15:1
Aa Black text on Medium Slate Blue5.06:1

Medium Slate Blue and color blindness

These are approximate previews of how Medium Slate Blue can look with the main types of color vision deficiency.

Protanopia #0280F2

Medium Slate Blue changes noticeably.

Deuteranopia #0078EB

Medium Slate Blue changes noticeably.

Tritanopia #5286A1

Medium Slate Blue changes noticeably.

Achromatopsia #7C7C7C

Medium Slate Blue changes noticeably.

Gradients with Medium Slate Blue

Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.

Medium Slate Blue to a lighter tint

background: linear-gradient(135deg, #7b68ee 0%, #cac3f8 100%);

Medium Slate Blue to its analogous neighbour

background: linear-gradient(135deg, #7b68ee 0%, #be68ee 100%);

Medium Slate Blue to its complement

background: linear-gradient(135deg, #7b68ee 0%, #dbee68 100%);

Colors similar to Medium Slate Blue

How each close match differs from Medium Slate Blue.

More purple colors →

Use Medium Slate Blue in code

CSS
.element {
  color: #7b68ee;
  background-color: #7b68ee;
  border-color: mediumslateblue;   /* mediumslateblue is a valid CSS color name */
}
CSS variable
:root {
  --color-medium-slate-blue: #7b68ee;
}
Tailwind
<!-- Tailwind arbitrary values -->
<div class="bg-[#7b68ee] text-[#7b68ee] border-[#7b68ee]"></div>

/* Tailwind v4 theme color */
@theme {
  --color-medium-slate-blue: #7b68ee;
}

Medium Slate Blue questions

What is the hex code for Medium Slate Blue?

The hex code for Medium Slate Blue is #7B68EE. In RGB that is rgb(123, 104, 238), and in HSL it is hsl(249, 80%, 67%).

What is the complementary color of Medium Slate Blue?

On the RGB (screen) color wheel, the complement of Medium Slate Blue is #DBEE68, which is close to Yellow Green. On the artist’s RYB wheel it is #EECB68, close to Khaki.

Should I use white or black text on Medium Slate Blue?

Black text. It has a contrast ratio of 5.06:1 against Medium Slate Blue, which is WCAG AA. The other option scores 4.15:1.

Is Medium Slate Blue accessible as a text color on white?

Only for large text. Medium Slate Blue on white scores 4.15:1, which passes WCAG AA for large text (3:1) but not for normal text (4.5:1).

What are darker and lighter shades of Medium Slate Blue?

Mixing Medium Slate Blue with black gives #6253BE, #4A3E8F, #312A5F, #191530 (20% to 80% black). Mixing it with white gives #9586F1, #B0A4F5, #CAC3F8, #E5E1FC (20% to 80% white).

More color tools