Skip to content

Dark Violet (#9400D3)

The hex code for Dark Violet is #9400D3. It is rgb(148, 0, 211) in RGB, hsl(282, 100%, 41%) in HSL, and about cmyk(30%, 100%, 0%, 17%) in CMYK — a mid-tone purple. White text is the more readable choice on this background.

#9400D3
HEX#9400D3
RGBrgb(148, 0, 211)
HSLhsl(282, 100%, 41%)
HSVhsv(282, 100%, 83%)
CMYKcmyk(30%, 100%, 0%, 17%)
OKLCHoklch(51.5% 0.261 309.8)
LABlab(38.79% 70.43 -71.24)
LCHlch(38.79% 100.18 314.67)

Colors Closest to Dark Violet

Dark Violet is a registered color name, also listed as Pigment Violet. These are the named colors nearest to it, measured as CIE76 distance in CIELAB — a perceptual scale, so the ordering matches what the eye sees rather than how close the raw RGB numbers happen to sit.

Browse the full index of named colors A-Z or every purple in the library.

#9400D3 Channel Values

How Dark Violet breaks down in each color model. Hue is measured in degrees around the color wheel; saturation, lightness, and the CMYK inks are percentages.

ModelChannelsNotes
RGBR 148 · G 0 · B 2118-bit channels as sent to the display
HSLH 282° · S 100% · L 41%Easiest model for building lighter and darker variants
HSVH 282° · S 100% · V 83%Matches the picker in most design tools
CMYKC 30% · M 100% · Y 0% · K 17%Approximate ink mix; confirm with an ICC profile before printing
Luminance6.56:1 vs white · 3.2:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a Dark Violet background. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1. Contrast is one check, not a full accessibility review.

TextWhite text6.56:1AA normal AA large AAA normal
Fails AABlack text3.2:1AA normal AA large AAA normal

Need a specific ratio against another background? Open #9400D3 in the contrast checker.

Colors That Go With Dark Violet

Pairings derived from color-wheel relationships. The complementary color sits opposite Dark Violet; analogous colors sit beside it; triadic and split-complementary sets spread evenly around the wheel. Select any swatch for its own breakdown.

Base
Complementary
Analogous
Analogous
Triadic
Triadic
Split comp.
Split comp.

Tints & Shades of Dark Violet

Lighter tints and darker shades built by moving the lightness channel while holding hue and saturation, which is what you want for hover states, backgrounds, and text variants.

Tints

Shades

Want a full 50-950 ramp with semantic roles? Generate design tokens from #9400D3.

How Dark Violet Looks with Color Vision Deficiency

Simulated with the Viénot, Brettel & Mollon LMS projection model. Anomalous types are rendered as partial versions of the matching dichromacy, which is an approximation rather than a per-person clinical model.

Typical#9400D3
Protanopia#4040D3
Protanomaly#6C31D3
Deuteranopia#5858D2
Deuteranomaly#7545D2
Tritanopia#7F5151
Tritanomaly#883F97
Achromatopsia#5D5D5D

Test a full palette in the color blindness simulator.

Using #9400D3 in Code

Copy-ready declarations for the places this color usually ends up.

CSS custom property--dark-violet: #9400D3;
CSS backgroundbackground-color: #9400D3;
Tailwind configcolors: { 'dark-violet': '#9400D3' }
SwiftUIColor(red: 0.580, green: 0.000, blue: 0.827)
Android XML<color name="dark_violet">#9400D3</color>
SVG fillfill="#9400D3"

More Purple Colors

Dark Violet sits in the purple family. These are its neighbours across that family's full range, each with its own breakdown.

#9400D3 Frequently Asked Questions

What is the hex code for Dark Violet?

The hex code for Dark Violet is #9400D3. That is rgb(148, 0, 211) in RGB, hsl(282, 100%, 41%) in HSL, and approximately cmyk(30%, 100%, 0%, 17%) in CMYK.

What is the RGB value of #9400D3?

#9400D3 is rgb(148, 0, 211) — red 148, green 0, and blue 211 on the 0-255 scale.

What is the CMYK value of #9400D3?

#9400D3 converts to approximately cmyk(30%, 100%, 0%, 17%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

Should text on #9400D3 be black or white?

White text is the more readable choice. #9400D3 scores 6.56:1 against white and 3.2:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.

Is DarkViolet a CSS named color?

Yes. DarkViolet is one of the CSS named colors, so you can write color: darkviolet instead of the hex code.

Open Dark Violet in a Tool

Keep exploring: every purple in the color library, the guide to shades of purple, or the full color library.