#9400D3 color (darkviolet)

#9400D3 is rgb(148, 0, 211) in RGB and hsl(282, 100%, 41%) in HSL. It is exactly the CSS color darkviolet. Use white text on it (contrast 6.56:1).

#9400D3darkviolet
HEX#9400D3
RGBrgb(148, 0, 211)
RGB percentrgb(58%, 0%, 82.7%)
HSLhsl(282, 100%, 41%)
HSV / HSBhsv(282, 100%, 83%)
CMYKcmyk(30%, 100%, 0%, 17%)
CIELAB (D65)lab(39.6 76.3 -70.4)

Edit in the color converter → · Check contrast → · Shades →

About #9400D3

#9400D3 is a medium-dark, vivid magenta with a hue angle of 282°. It belongs to the purple family and reads as a balanced color. In the RGB model blue is the strongest channel at 211 (83%) and green the weakest at 0 (0%). Colors like this are typically used for buttons, links, badges and other accents that need to stand out.

Color conversions

HEX#9400D3
RGBrgb(148, 0, 211)
RGB percentrgb(58%, 0%, 82.7%)
HSLhsl(282, 100%, 41%)
HSV / HSBhsv(282, 100%, 83%)
CMYKcmyk(30%, 100%, 0%, 17%)
CIELAB (D65)lab(39.6 76.3 -70.4)
Decimal9699539
Binary10010100 00000000 11010011

HEX 94 00 D3 → 148, 0, 211 (each pair is a base-16 number: 9×16 + 4 = 148)

Color harmonies

Harmonies rotate the HSL hue (complementary +180°, triadic ±120°, split-complementary ±150°, analogous ±30°, tetradic 90° steps) and keep saturation and lightness. Swatches link to the nearest color page.

Tints and shades of #9400D3

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #9400D3RatioAA normalAA largeAAA normalAAA large
White text6.56:1PassPassFailPass
Black text3.20:1FailPassFailFail
White text on #9400D3
Black text on #9400D3
#9400D3 text on white
#9400D3 text on black

Relative luminance is 0.1100 (0 = black, 1 = white). WCAG 2 requires 4.5:1 for body text and 3:1 for large text and UI components.

Color blindness simulation

Protanopia
#0058d8

Deuteranopia
#005fd0

Tritanopia
#8a4c7b

Achromatopsia
#5d5d5d

With deuteranopia, the most common form of color blindness, this color shifts noticeably (ΔE 24.3). Do not rely on it alone to signal status; add an icon or text label. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.

Similar named colors

NameHEXΔE 2000
darkviolet#9400d30
blueviolet#8a2be24
darkorchid#9932cc4.4
rebeccapurple#66339910.4

CSS

.element {
  color: #9400d3;
  background-color: rgb(148, 0, 211);
  border: 1px solid hsl(282, 100%, 41%);
  box-shadow: 0 2px 8px rgb(148 0 211 / 50%);
}
:root { --brand: #9400d3; }

Frequently asked questions

What color is #9400D3?
A medium-dark vivid magenta in the purple family. Closest CSS name: darkviolet.
What is #9400D3 in RGB?
rgb(148, 0, 211): red 148, green 0, blue 211.
What is the complementary color of #9400D3?
#3FD300, found by rotating the hue 180°.