Darkviolet colour (#9400D3)
Darkviolet is medium a purple with hex code #9400D3, one of the 148 named colours every browser understands, so you can write color: ${name} directly in CSS. In RGB it is 148, 0, 211; in HSL 282°, 100%, 41%. Use the tool to explore shades and harmonies.
How to use the Darkviolet colour
- The colour is pre-filled; click Explore to see all formats, shades and harmonies.
- Edit the value to try a variation.
- Copy the code you need.
Darkviolet in every format
| Format | Value |
|---|---|
| HEX | #9400D3 |
| RGB | rgb(148, 0, 211) |
| RGB (0–1) | 0.580, 0.000, 0.827 |
| HSL | hsl(282, 100%, 41%) |
| CMYK (approx.) | 30%, 100%, 0%, 17% |
| CSS | color: darkviolet; |
Shades and tints of Darkviolet
Same hue and saturation, lightness from 90% to 10%:
#f0ccff | #e099ff | #d166ff | #c233ff | #b300ff | #8f00cc | #6b0099 | #470066 | #240033 |
Colours that go with Darkviolet
| Harmony | Colours | |
|---|---|---|
| Complementary | #3fd100 | |
| Triadic | #d19200 | #00d192 |
| Analogous | #d100a7 | #2a00d1 |
Similar named colours
The closest CSS named colours by RGB distance, useful when you need a keyword instead of a hex code or want a near match:
| Colour | HEX | Difference |
|---|---|---|
| blueviolet | #8a2be2 | close |
| darkorchid | #9932cc | close |
| darkmagenta | #8b008b | close |
| purple | #800080 | noticeably different |
| rebeccapurple | #663399 | noticeably different |
Accessibility
Contrast ratio of Darkviolet against white is 6.56:1 (passes WCAG AA for normal text) and against black 3.2:1 (fails). Use Darkviolet for text on white backgrounds.
Frequently asked questions
What is the hex code for Darkviolet?
#9400D3.
What is Darkviolet in RGB?
rgb(148, 0, 211).
What colour is complementary to Darkviolet?
#3fd100, directly opposite on the colour wheel.
Privacy
This tool runs entirely inside your browser using WebAssembly and the Canvas/File APIs. Your files are never uploaded to ToolFlint or any third party; you can verify this in your browser's network tab or by switching to airplane mode after the page loads. Read how we process files.
Last updated 2026-09-23.