Skip to content
PantoneTools
purple
CSS Named Colors

Darkviolet

darkviolet · #9400D3

HEX

#9400D3

RGB

rgb(148, 0, 211)

CMYK

cmyk(30%, 100%, 0%, 17%)

HSL

hsl(282, 100%, 41%)

LAB

lab(39.6, 76.3, -70.4)

What is Darkviolet?

Darkviolet is the darkviolet reference in the CSS Named Colors. Its sRGB value is #9400D3 (rgb 148, 0, 211). It sits in the purple family. The 147 named colors defined by the W3C CSS Color Module Level 4 specification — usable directly in CSS as keywords like 'crimson' or 'rebeccapurple'. See disclaimer for accuracy and trademark notes.

Accessibility

WCAG 2.1 contrast checks for Darkviolet as a background.

Black text on this color

Sample text · 3.20 : 1
AA Normal
AA Large
AAA Normal
AAA Large

White text on this color

Sample text · 6.56 : 1
AA Normal
AA Large
AAA Normal
AAA Large

Shades, tints & tonal scale of Darkviolet

An 11-step tonal scale derived from Darkviolet (#9400D3). Click any swatch to copy its HEX. Use these as a starting point for design tokens, hover states, and disabled states in a design system.

Copied #F6EBFB

50

#F6EBFB

#F6EBFB

Copied #EED6F8

100

#EED6F8

#EED6F8

Copied #DDADF1

200

#DDADF1

#DDADF1

Copied #CA80E9

300

#CA80E9

#CA80E9

Copied #AF40DE

400

#AF40DE

#AF40DE

Copied #9400D3

500

#9400D3

#9400D3

Copied #7E00B3

600

#7E00B3

#7E00B3

Copied #600089

700

#600089

#600089

Copied #43005F

800

#43005F

#43005F

Copied #250035

900

#250035

#250035

Copied #120019

950

#120019

#120019

Lighter tints (mixed with white)

Copied #AA6CDA

15%

#AA6CDA

Copied #BD95E1

30%

#BD95E1

Copied #CDB3E8

45%

#CDB3E8

Copied #DCCBEF

60%

#DCCBEF

Copied #EAE1F5

75%

#EAE1F5

Darker shades (mixed with black)

Copied #8900C4

15%

#8900C4

Copied #7E00B4

30%

#7E00B4

Copied #7000A1

45%

#7000A1

Copied #61008C

60%

#61008C

Copied #4D0070

75%

#4D0070

Color harmonies for Darkviolet

Classic color-theory harmonies derived from rotating the hue of Darkviolet. Use these to build accent palettes, brand systems, and accessible UI color pairings.

Complementary

180° opposite — strongest contrast

Copied #9400D3

#9400D3

#9400D3

Copied #3FD100

#3FD100

#3FD100

Triadic

Three colors 120° apart

Copied #9400D3

#9400D3

#9400D3

Copied #D19200

#D19200

#D19200

Copied #00D192

#00D192

#00D192

Analogous

Two neighbors ±30° on the wheel

Copied #2A00D1

#2A00D1

#2A00D1

Copied #9400D3

#9400D3

#9400D3

Copied #D100A7

#D100A7

#D100A7

Split-complementary

Base + two colors flanking its complement

Copied #9400D3

#9400D3

#9400D3

Copied #A7D100

#A7D100

#A7D100

Copied #00D12A

#00D12A

#00D12A

Tetradic

Two complementary pairs

Copied #9400D3

#9400D3

#9400D3

Copied #D1003F

#D1003F

#D1003F

Copied #3FD100

#3FD100

#3FD100

Copied #00D192

#00D192

#00D192

Square

Four colors evenly spaced 90° apart

Copied #9400D3

#9400D3

#9400D3

Copied #D12A00

#D12A00

#D12A00

Copied #3FD100

#3FD100

#3FD100

Copied #00A7D1

#00A7D1

#00A7D1

Darkviolet in every color space

Full conversion of Darkviolet across the color spaces designers and developers actually use — including OKLCH (the perceptually-uniform space that powers Tailwind v4 and CSS Color Module Level 4) and HWB.

HEX

#9400D3

RGB

rgb(148, 0, 211)

CMYK

cmyk(30%, 100%, 0%, 17%)

HSL

hsl(282, 100%, 41%)

HSV

hsv(282, 100%, 83%)

HWB

hwb(282 0% 17%)

CIE Lab

lab(39.6 76.3 -70.4)

OKLCH

oklch(51.5% 0.261 309.8)

XYZ (D65)

xyz(23.97, 11.00, 62.48)

Copy-ready code for Darkviolet

Drop-in snippets for CSS, Tailwind, Sass, iOS Swift, and Android XML. Click the copy button on any snippet to put it on your clipboard.

CSS

color: #9400D3;
background-color: #9400D3;

CSS variable

:root {
  --color-darkviolet: #9400D3;
}

Tailwind config

// tailwind.config.js
colors: {
  'darkviolet': '#9400D3',
}

Sass

$color-darkviolet: #9400D3;

Swift UIColor

UIColor(red: 0.580, green: 0.000, blue: 0.827, alpha: 1.0)

Android XML

<color name="darkviolet">#9400D3</color>

Closest match in every color system

The nearest Darkviolet equivalent in every other color system on this site, ranked by ΔE2000 perceptual distance. Useful when translating between design-system, web-standard, and industrial color references.

Closest in CSS Named Colors

Top 6 ΔE2000-closest entries within the same collection.

Top 6 ΔE2000-closest Pantone references. Cross-system matching is approximate — see disclaimer.

Top 6 ΔE2000-closest RAL Classic references for industrial coating cross-reference.

Copied #6C4675

RAL 4005

#6C4675

Blue lilac

Copied #A03472

RAL 4006

#A03472

Traffic purple

Copied #434B4D

RAL 7011

#434B4D

Iron grey

Copied #924E7D

RAL 4008

#924E7D

Signal violet

Copied #343E40

RAL 6012

#343E40

Black green

Copied #474B4E

RAL 7031

#474B4E

Blue grey

FAQ about Darkviolet

What is the HEX code for Darkviolet?

Darkviolet (darkviolet) has the HEX code #9400D3. In RGB it is rgb(148, 0, 211), and in CMYK it is cmyk(30%, 100%, 0%, 17%).

What is the OKLCH value of Darkviolet?

Darkviolet converts to oklch(0.515 0.261 309.8). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.

Is Darkviolet accessible for body text?

Used as a background, Darkviolet has a contrast ratio of 3.20:1 with black text and 6.56:1 with white text. WCAG 2.1 AA requires 4.5:1 for normal text. The current recommendation is to use white text and verify in real UI context.

What is the closest Pantone to Darkviolet?

The closest Pantone reference to Darkviolet by ΔE2000 perceptual distance is Pantone 254 C (#9B26B6). Cross-system Pantone matching is approximate; for color-critical print work, verify with a physical Pantone guide.

What is the closest RAL color to Darkviolet?

The closest RAL Classic reference to Darkviolet by ΔE2000 distance is RAL 4005 (Blue lilac, #6C4675). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.

What is the complementary color of Darkviolet?

The complementary color (180° opposite on the HSL color wheel) of Darkviolet is #3FD100. Use it for high-contrast accents, error states, or call-to-action pairings.

Data provenance & source

CSS Named Colors (CSS Color Module Level 4)

The 147 named colors defined by the W3C CSS Color Module Level 4 specification. Origin: VGA (16) + X11 (rest) + 'rebeccapurple'. Use as a reference for web color names that all browsers natively support. Names like 'crimson' or 'rebeccapurple' work as CSS values without any framework.

Source type
derived
Confidence
high
License
W3C permissive document license
Last reviewed
2026-05-24

Workflow tags

css
web-standard
named-keyword
purple

CSS named colors are sRGB digital values defined for browsers. For print, convert to a process-appropriate color and proof against substrate.

CSS Named Colors · Darkviolet — #9400D3 | PantoneTools