#9840CC

Closest named color: Dark Orchid (#9932CC). oklch(55.4% 0.211 310), rgb(152, 64, 204).

Aa

White text reads best on this color (5.32:1).

About this color

#9840CC is a medium-dark, vivid purple. In OKLCH its lightness is 55%, its chroma 0.211 and its hue 310°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Orchid (#9932CC), ΔE 0.021 away. White text reads best on it, at 5.32:1.

Hue familyPurples
Lightnessmedium-dark (55%)
Chromavivid (0.211)
Temperaturein between
Nearest nameDark Orchid (#9932CC)
Black text3.94:1
White text5.32:1

Values

HEX#9840CC
RGBrgb(152, 64, 204)
HSLhsl(278, 58%, 53%)
OKLCHoklch(55.4% 0.211 310)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #9840CC 5.32:1 AA Lc -81.1 Fine for body text
Black text on #9840CC 3.94:1 AA large text Lc 28.3 Dividers and decoration only
#9840CC text on white 5.32:1 AA Lc 75.7 Fine for body text
#9840CC text on black 3.94:1 AA large text Lc -26.0 Dividers and decoration only

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 600.

  1. Step 50

    50

    #F8F3FC

    oklch(97.1% 0.013 310.5)

  2. Step 100

    100

    #EFE5F8

    oklch(93.5% 0.027 309.2)

  3. Step 200

    200

    #E4D0F4

    oklch(88.5% 0.053 310.1)

  4. Step 300

    300

    #D3B0EF

    oklch(80.9% 0.095 309.6)

  5. Step 400

    400

    #BE83E7

    oklch(70.7% 0.153 310.2)

  6. Step 500

    500

    #AD60DF

    oklch(63.1% 0.193 310)

  7. Step 600

    600 (this color)

    #9840CC

    oklch(55.4% 0.211 310)

  8. Step 700

    700

    #8231B1

    oklch(49.1% 0.196 309.9)

  9. Step 800

    800

    #6A2A8F

    oklch(42.6% 0.163 310.3)

  10. Step 900

    900

    #562872

    oklch(37.6% 0.127 310.4)

  11. Step 950

    950

    #321943

    oklch(27% 0.079 309.6)

Export this scale for Tailwind in the Tailwind colors tool

#9840CC with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#0067D00.182
Deuteranopia (no green cones)#296CC90.171
Tritanopia (no blue cones)#915E810.145
Achromatopsia (no color)#6B6B6B0.213

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #9840CC

    #9840CC

    oklch(55.4% 0.211 310)

  • #548300

    #548300

    oklch(55.5% 0.15 130.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #9840CC

    #9840CC

    oklch(55.4% 0.211 310)

  • #6258E9

    #6258E9

    oklch(55.5% 0.211 280.1)

  • #BC2998

    #BC2998

    oklch(55.4% 0.211 340.2)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #9840CC

    #9840CC

    oklch(55.4% 0.211 310)

  • #837300

    #837300

    oklch(55.3% 0.115 99.6)

  • #008859

    #008859

    oklch(55.3% 0.124 160.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #9840CC

    #9840CC

    oklch(55.4% 0.211 310)

  • #9E6400

    #9E6400

    oklch(55.3% 0.12 70.3)

  • #00847F

    #00847F

    oklch(55.3% 0.096 190.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #9840CC

    #9840CC

    oklch(55.4% 0.211 310)

  • #C24200

    #C24200

    oklch(55.4% 0.174 39.9)

  • #548300

    #548300

    oklch(55.5% 0.15 130.2)

  • #00809B

    #00809B

    oklch(55.5% 0.101 219.5)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #9840CC, closest first.

No curated palette has a color within ΔE 0.04 of #9840CC.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #9840CC in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.