#640C7D

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

Aa

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

About this color

#640C7D 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.10:1.

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

Values

HEX#640C7D
RGBrgb(100, 12, 125)
HSLhsl(287, 82%, 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 #640C7D 11.10:1 AAA Lc -98.2 Preferred for body text
Black text on #640C7D 1.89:1 Fails Lc 9.8 Not readable
#640C7D text on white 11.10:1 AAA Lc 94.2 Preferred for body text
#640C7D 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

    #FAF2FE

    oklch(97.1% 0.018 314.7)

  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

    #D36FF5

    oklch(70.8% 0.208 316.8)

  6. Step 500

    500

    #C638F1

    oklch(63.1% 0.267 316.7)

  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)

    #640C7D

    oklch(37.8% 0.174 316.6)

  11. Step 950

    950

    #3B0C49

    oklch(27% 0.111 317.1)

Export this scale for Tailwind in the Tailwind colors tool

#640C7D 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.156
Deuteranopia (no green cones)#0B3E7B0.155
Tritanopia (no blue cones)#622B480.111
Achromatopsia (no color)#3C3C3C0.176

Harmonies

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

Complementary

The opposite hue (180°).

  • #640C7D

    #640C7D

    oklch(37.8% 0.174 316.6)

  • #214E00

    #214E00

    oklch(37.7% 0.113 136.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #640C7D

    #640C7D

    oklch(37.8% 0.174 316.6)

  • #412497

    #412497

    oklch(37.8% 0.174 286.2)

  • #770052

    #770052

    oklch(37.8% 0.16 346.8)

Open the analogous palette in the generator

Split complementary

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

  • #640C7D

    #640C7D

    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.

  • #640C7D

    #640C7D

    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.

  • #640C7D

    #640C7D

    oklch(37.8% 0.174 316.6)

  • #6D2B00

    #6D2B00

    oklch(37.8% 0.106 46.3)

  • #214E00

    #214E00

    oklch(37.7% 0.113 136.4)

  • #00495F

    #00495F

    oklch(37.8% 0.072 226.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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