#9D40CF

Closest named color: Dark Orchid (#9932CC). oklch(56.2% 0.216 311.2), rgb(157, 64, 207).

Aa

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

About this color

#9D40CF is a medium-dark, vivid purple. In OKLCH its lightness is 56%, its chroma 0.216 and its hue 311°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Orchid (#9932CC), ΔE 0.024 away. White text reads best on it, at 5.16:1.

Hue familyPurples
Lightnessmedium-dark (56%)
Chromavivid (0.216)
Temperaturein between
Nearest nameDark Orchid (#9932CC)
Black text4.06:1
White text5.16:1

Values

HEX#9D40CF
RGBrgb(157, 64, 207)
HSLhsl(279, 60%, 53%)
OKLCHoklch(56.2% 0.216 311.2)

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 #9D40CF 5.16:1 AA Lc -80.1 Fine for body text
Black text on #9D40CF 4.06:1 AA large text Lc 29.3 Dividers and decoration only
#9D40CF text on white 5.16:1 AA Lc 74.7 Content text, not long reading
#9D40CF text on black 4.06:1 AA large text Lc -27.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

    #F0E5F8

    oklch(93.6% 0.028 311.3)

  3. Step 200

    200

    #E5D0F4

    oklch(88.6% 0.054 311.2)

  4. Step 300

    300

    #D5AFEF

    oklch(80.9% 0.097 311.2)

  5. Step 400

    400

    #C082E7

    oklch(70.8% 0.155 311.3)

  6. Step 500

    500

    #B05DDF

    oklch(63.1% 0.199 311.5)

  7. Step 600

    600 (this color)

    #9D40CF

    oklch(56.2% 0.216 311.2)

  8. Step 700

    700

    #842EB1

    oklch(49% 0.2 311.1)

  9. Step 800

    800

    #6C2890

    oklch(42.8% 0.167 311.2)

  10. Step 900

    900

    #572773

    oklch(37.7% 0.13 310.8)

  11. Step 950

    950

    #331843

    oklch(27% 0.082 311.1)

Export this scale for Tailwind in the Tailwind colors tool

#9D40CF 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)#0069D30.189
Deuteranopia (no green cones)#2D6FCC0.176
Tritanopia (no blue cones)#975F830.147
Achromatopsia (no color)#6D6D6D0.217

Harmonies

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

Complementary

The opposite hue (180°).

  • #9D40CF

    #9D40CF

    oklch(56.2% 0.216 311.2)

  • #538600

    #538600

    oklch(56.2% 0.154 131.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #9D40CF

    #9D40CF

    oklch(56.2% 0.216 311.2)

  • #6658ED

    #6658ED

    oklch(56.1% 0.215 281.1)

  • #C12899

    #C12899

    oklch(56.2% 0.216 341.3)

Open the analogous palette in the generator

Split complementary

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

  • #9D40CF

    #9D40CF

    oklch(56.2% 0.216 311.2)

  • #847600

    #847600

    oklch(56.1% 0.117 101.1)

  • #008B5D

    #008B5D

    oklch(56.2% 0.125 161.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #9D40CF

    #9D40CF

    oklch(56.2% 0.216 311.2)

  • #A16700

    #A16700

    oklch(56.3% 0.121 71.1)

  • #008783

    #008783

    oklch(56.3% 0.097 191.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #9D40CF

    #9D40CF

    oklch(56.2% 0.216 311.2)

  • #C44600

    #C44600

    oklch(56.2% 0.173 41)

  • #538600

    #538600

    oklch(56.2% 0.154 131.1)

  • #0082A0

    #0082A0

    oklch(56.2% 0.103 221.5)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #9D40CF.

Similar named colors

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

Use #9D40CF 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.