Toolman

slateblue — #6A5ACD

#6A5ACD

rgb(106, 90, 205) · hsl(248, 53%, 58%) · CSS keyword slateblue

Can you put text on it?

ContrastBody textLarge text
slateblue on white5.31:1AAAA
slateblue on black3.96:1AA

As a background, slateblue takes white text: 5.31:1 against 3.96:1 the other way. A colour picker will give you the hex and stop there, which is why so many palettes look right and fail an accessibility audit.

Using it

color: slateblue;
color: #6a5acd;
color: rgb(106 90 205);

All three are the same colour. The keyword is one of the 141 CSS named colours — a list settled in CSS 2.1 and added to exactly once since, when rebeccapurple was standardised in 2014.

Colours close to slateblue

Frequently asked questions

What is the hex code for slateblue?

The hex code for slateblue is #6A5ACD — RGB 106, 90, 205.

Can I use slateblue for text?

Yes. slateblue reaches 5.31:1 against white, past the 4.5:1 that WCAG AA asks for body text.

Should text on slateblue be black or white?

White — 5.31:1 against 3.96:1 the other way.

Other named colours

#6A5ACD in full — tints, shades and harmonies · All named colours · Colour reference