Toolman

darkviolet — #9400D3

#9400D3

rgb(148, 0, 211) · hsl(282, 100%, 41%) · CSS keyword darkviolet

Can you put text on it?

ContrastBody textLarge text
darkviolet on white6.56:1AAAA
darkviolet on black3.2:1AA

As a background, darkviolet takes white text: 6.56:1 against 3.2: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: darkviolet;
color: #9400d3;
color: rgb(148 0 211);

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 darkviolet

Frequently asked questions

What is the hex code for darkviolet?

The hex code for darkviolet is #9400D3 — RGB 148, 0, 211.

Can I use darkviolet for text?

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

Should text on darkviolet be black or white?

White — 6.56:1 against 3.2:1 the other way.

Other named colours

#9400D3 in full — tints, shades and harmonies · All named colours · Colour reference