#640D7D

Closest named color: Purple (#800080). oklch(37.8% 0.174 316.6), rgb(100, 13, 125).

Aa

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

About this color

#640D7D is a dark, vivid purple. In OKLCH its lightness is 38%, its chroma 0.174 and its hue 317°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Purple (#800080), ΔE 0.060 away. White text reads best on it, at 11.07:1.

Hue familyPurples
Lightnessdark (38%)
Chromavivid (0.174)
Temperaturein between
Nearest namePurple (#800080)
Black text1.89:1
White text11.07:1

Values

HEX#640D7D
RGBrgb(100, 13, 125)
HSLhsl(287, 81%, 27%)
OKLCHoklch(37.8% 0.174 316.6)

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 #640D7D 11.07:1 AAA Lc -98.1 Preferred for body text
Black text on #640D7D 1.89:1 Fails Lc 9.8 Not readable
#640D7D text on white 11.07:1 AAA Lc 94.1 Preferred for body text
#640D7D text on black 1.89:1 Fails Lc -8.4 Not readable

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 900.

  1. Step 50

    50

    #FAF2FD

    oklch(97% 0.017 316.9)

  2. Step 100

    100

    #F4E3FB

    oklch(93.6% 0.037 316.2)

  3. Step 200

    200

    #EDCBFA

    oklch(88.5% 0.073 316.6)

  4. Step 300

    300

    #E2A6F9

    oklch(81% 0.13 316.4)

  5. Step 400

    400

    #D26FF5

    oklch(70.7% 0.208 316.5)

  6. Step 500

    500

    #C539F1

    oklch(63.1% 0.266 316.4)

  7. Step 600

    600

    #AE00D9

    oklch(55.7% 0.272 316.6)

  8. Step 700

    700

    #9300B8

    oklch(49.2% 0.24 316.6)

  9. Step 800

    800

    #790098

    oklch(42.7% 0.209 316.6)

  10. Step 900

    900 (this color)

    #640D7D

    oklch(37.8% 0.174 316.6)

  11. Step 950

    950

    #3A0D49

    oklch(27% 0.109 316.1)

Export this scale for Tailwind in the Tailwind colors tool

#640D7D 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)#0037800.155
Deuteranopia (no green cones)#0C3E7B0.154
Tritanopia (no blue cones)#622B480.110
Achromatopsia (no color)#3C3C3C0.175

Harmonies

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

Complementary

The opposite hue (180°).

  • #640D7D

    #640D7D

    oklch(37.8% 0.174 316.6)

  • #214F00

    #214F00

    oklch(38% 0.114 136.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #640D7D

    #640D7D

    oklch(37.8% 0.174 316.6)

  • #422497

    #422497

    oklch(37.9% 0.174 286.8)

  • #770053

    #770053

    oklch(37.8% 0.16 346.2)

Open the analogous palette in the generator

Split complementary

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

  • #640D7D

    #640D7D

    oklch(37.8% 0.174 316.6)

  • #474400

    #474400

    oklch(37.7% 0.081 106.8)

  • #004F39

    #004F39

    oklch(37.9% 0.078 166.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #640D7D

    #640D7D

    oklch(37.8% 0.174 316.6)

  • #593B00

    #593B00

    oklch(37.8% 0.079 76.7)

  • #004C4D

    #004C4D

    oklch(37.8% 0.064 196.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #640D7D

    #640D7D

    oklch(37.8% 0.174 316.6)

  • #6D2B00

    #6D2B00

    oklch(37.8% 0.106 46.3)

  • #214F00

    #214F00

    oklch(38% 0.114 136.6)

  • #004960

    #004960

    oklch(37.8% 0.073 227.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #640D7D 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.