CSS Named Color

Copy-ready color values

HEX#7B68EE
RGBrgb(123, 104, 238)
HSLhsl(249, 80%, 67%)
HSVhsv(249, 56%, 93%)
CMYK approx.cmyk(48, 56, 0, 7)

Color value table

FormatValueCopy
HEX#7B68EE
RGBrgb(123, 104, 238)
HSLhsl(249, 80%, 67%)
HSVhsv(249, 56%, 93%)
CMYK approx.cmyk(48, 56, 0, 7)
CSS keywordmediumslateblue

Contrast and classification

LightLightness4.15:1Contrast with white5.06:1Contrast with blackPurple / BlueColor family

Shade and tint preview

White 10%
#8877F0

White 30%
#A395F3

White 70%
#D7D2FA

White 90%
#F2F0FD

Black 10%
#6F5ED6

Black 30%
#5649A7

Black 70%
#251F47

Black 90%
#0C0A18

Harmony palettes

Complementary

#849711
#A2B04A

Analogous

#7968E0
#7B78DE

Triadic

#68EE7B
#EE7B68

Split complementary

#9AAA3C
#6C7C0E

Using Mediumslateblue

Mediumslateblue works best when it is chosen with contrast, surrounding colors, and interface state in mind. Use the HEX value for static CSS, RGB when you need channel-level control, and HSL when adjusting lightness or saturation for hover states. The CMYK value is an approximate screen-to-print conversion, so print workflows should still rely on calibrated design software or a printer profile.

CSS, SCSS, and Tailwind examples

:root {
  --color-mediumslateblue: #7b68ee;
}

.button-primary {
  background: var(--color-mediumslateblue);
  color: #000000;
}

$mediumslateblue: #7b68ee;

// Tailwind arbitrary value
class="bg-[#7b68ee] text-white"