Inspect DarkOrchid (#9932CC) in HEX, RGB, HSL, LCH and OKLCH, check its contrast, and copy the value you need.
DarkOrchid
#9932CC
White text reads best on this background, at 5.7:1.
DarkOrchid is one of the 148 CSS named colors, and resolves to #9932CC in every browser. In numbers that is rgb(153, 50, 204) and hsl(280, 61%, 50%). Perceptually it is a mid-toned, vivid color: OKLCH puts its lightness at 54% and its chroma at 0.227. It sits in the purples at 312 degrees of OKLCH hue, and reads as a cool color.
White text clears WCAG AA on a DarkOrchid background at 5.7:1. At this chroma it is loud enough to be an accent or a call to action, but it will fight anything else vivid placed next to it.
The closest CSS named colors to DarkOrchid, measured with CIEDE2000, are BlueViolet (#8A2BE2), DarkViolet (#9400D3), MediumOrchid (#BA55D3). If DarkOrchid is not quite right, those are the nearest keywords to try before reaching for a custom value.
HEX
#9932CC
RGB
rgb(153, 50, 204)
HSL
hsl(280, 61%, 50%)
HWB
hwb(280 20% 20%)
CMYK
cmyk(25%, 75%, 0%, 20%)
LAB
lab(42.82 59.94 -60.62)
LCH
lch(42.82 85.25 314.68)
OKLCH
oklch(54.11% 0.2272 311.51)
WCAG asks for 4.5:1 between body text and its background. On #9932CC white text measures 5.7:1 and black text 3.68:1, so white clears it and black does not.
White text on DarkOrchid
WCAG 2.2
5.7:1
APCA
Lc 82
Passes AA body text
Fails AAA body text
Passes AA large text
Black text on DarkOrchid
WCAG 2.2
3.68:1
APCA
Lc 26
Fails AA body text
Fails AAA body text
Passes AA large text
Check DarkOrchid against any other color in the contrast checker.
DarkOrchid sits at 54% OKLCH lightness. Holding its hue and chroma and moving only that value carries it up to #FBF6FF and down to #0D0016, which keeps the family recognizable instead of letting it drift toward gray the way a plain HSL ramp does.
#B552EA
20% lighter
#CD77FF
40% lighter
#DCA5FF
60% lighter
#EBCFFF
80% lighter
#FBF6FF
100% lighter
#7F04B0
20% darker
#600086
40% darker
#42005D
60% darker
#260038
80% darker
#0D0016
100% darker
Build a full accessible scale from #9932CC in the shade generator.
Hues rotated around #9932CC in OKLCH, then pulled back into the sRGB gamut. Each swatch is labelled with the nearest CSS named color so you have a keyword to start from.
DarkOrchid sits at 312 degrees. Rotating it a half turn lands on 132 degrees, the hue directly opposite. It is the strongest pairing you can make without changing lightness, and the one most likely to vibrate if you use both at full chroma.
The neighbors of DarkOrchid at 282 and 342 degrees. They stay close enough to read as the same family, which is what you want for hover states, secondary surfaces and gradients.
312, 72 and 192 degrees divide the wheel into thirds. Balanced enough to carry a whole palette without one color dominating the other two.
Instead of the complement at 132 degrees, this pair flanks it at 102 and 162. You keep most of the contrast of a complementary pairing while losing the harshness.
Explore more combinations around DarkOrchid on the color wheel.
The biggest shift is under achromatopsia, where #9932CC reads as #535353, 30.5 CIEDE2000 units away. If DarkOrchid is the only thing marking a state or a series, roughly one viewer in twelve will miss it.
Protanopia
#224DD4
Deuteranopia
#3556C6
Tritanopia
#984161
Achromatopsia
#535353
The nearest CSS keywords to #9932CC, ranked by perceptual distance rather than by how close their hex digits happen to look.