#9400D3 color codes
- HEX
- #9400D3
- HEX8
- #9400D3FF
- HEX8 (Android)
- #FF9400D3
- RGB
- rgb(148, 0, 211)
- RGB (%)
- 58%, 0%, 83%
- HSL
- hsl(282, 100%, 41%)
- HSV / HSB
- hsv(282, 100%, 83%)
- CMYK
- cmyk(30%, 100%, 0%, 17%)
- OKLCH
- oklch(0.5149 0.2607 309.81)
- OKLCH (%)
- oklch(51.49% 0.2607 309.81)
- Decimal
- 9699539
What color is #9400D3?
#9400D3 sits at 51% lightness and 0.2607 chroma in OKLCH, hue 309.81°. Its nearest named color is DarkViolet (an exact match).
Shades and tints of #9400D3
Tints
Shades
Tones
#9400D3 color harmonies
Complementary
Analogous
Triadic
Split-complementary
Tetradic
Square
Monochromatic
Using #9400D3 in CSS
.text { color: #9400D3; }
.background { background-color: #9400D3; }
.border { border: 2px solid #9400D3; }
/* Modern, perceptually uniform */
.text { color: oklch(0.5149 0.2607 309.81); }
/* #9400D3 at 50% transparency */
.overlay { background-color: #9400D380; }Is #9400D3 accessible?
#9400D3 on white text scores 6.56:1; on black text it scores 3.20:1. White text passes WCAG AA for normal text on #9400D3. Recommended text color on a #9400D3 background: white.
A 3.2:1 vs black
A 6.56:1 vs white
- AA normal ≥ 4.5 Pass
- AA large ≥ 3 Pass
- AAA normal ≥ 7 Fail
- AAA large ≥ 4.5 Pass
Recommended text color: white
CSS
contrast-color() contrast-color(#9400D3) → white APCA Lc experimental 85.2 Lc · body text (white text)
WCAG 2.1 AA/AAA is the compliance floor; APCA is an optional readability metric.
Related colors
Nearest featured color: Purple #800080. See more in the purple family on the colors hub.
Frequently asked questions
- What color is #9400D3?
- #9400D3 is DarkViolet. In RGB it is rgb(148, 0, 211), and in HSL hsl(282, 100%, 41%).
- What is #9400D3 in RGB?
- #9400D3 converts to rgb(148, 0, 211) — red 148, green 0, blue 211.
- What text color is readable on #9400D3?
- White text — it has the higher contrast ratio (6.56:1) against #9400D3. White text passes WCAG AA for normal text on #9400D3.