#640DB5

Closest named color: Grape (#7209B7). oklch(42.8% 0.223 298.4), rgb(100, 13, 181).

Aa

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

About this color

#640DB5 is a dark, vivid purple. In OKLCH its lightness is 43%, its chroma 0.223 and its hue 298°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Grape (#7209B7), ΔE 0.029 away. White text reads best on it, at 9.26:1.

Hue familyPurples
Lightnessdark (43%)
Chromavivid (0.223)
Temperaturein between
Nearest nameGrape (#7209B7)
Black text2.26:1
White text9.26:1

Values

HEX#640DB5
RGBrgb(100, 13, 181)
HSLhsl(271, 87%, 38%)
OKLCHoklch(42.8% 0.223 298.4)

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 #640DB5 9.26:1 AAA Lc -94.0 Preferred for body text
Black text on #640DB5 2.26:1 Fails Lc 14.5 Not readable
#640DB5 text on white 9.26:1 AAA Lc 89.5 Fine for body text
#640DB5 text on black 2.26:1 Fails Lc -12.7 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 800.

  1. Step 50

    50

    #F6F3FF

    oklch(97% 0.016 297.5)

  2. Step 100

    100

    #ECE5FF

    oklch(93.5% 0.036 298)

  3. Step 200

    200

    #DED1FF

    oklch(88.6% 0.064 298)

  4. Step 300

    300

    #CAB1FF

    oklch(81% 0.111 298.6)

  5. Step 400

    400

    #B083FF

    oklch(70.6% 0.179 298.5)

  6. Step 500

    500

    #9F5CFF

    oklch(63.2% 0.231 298.4)

  7. Step 600

    600

    #901BFF

    oklch(55.7% 0.287 298.5)

  8. Step 700

    700

    #7A00DD

    oklch(49% 0.264 298.4)

  9. Step 800

    800 (this color)

    #640DB5

    oklch(42.8% 0.223 298.4)

  10. Step 900

    900

    #511B8F

    oklch(37.8% 0.174 298.5)

  11. Step 950

    950

    #2F1353

    oklch(27% 0.109 298.8)

Export this scale for Tailwind in the Tailwind colors tool

#640DB5 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)#0047B90.137
Deuteranopia (no green cones)#0045B20.136
Tritanopia (no blue cones)#4E466A0.164
Achromatopsia (no color)#4747470.225

Harmonies

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

Complementary

The opposite hue (180°).

  • #640DB5

    #640DB5

    oklch(42.8% 0.223 298.4)

  • #4A5600

    #4A5600

    oklch(42.8% 0.1 118.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #640DB5

    #640DB5

    oklch(42.8% 0.223 298.4)

  • #2333C6

    #2333C6

    oklch(42.8% 0.223 268.4)

  • #830083

    #830083

    oklch(42.8% 0.197 328.4)

Open the analogous palette in the generator

Split complementary

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

  • #640DB5

    #640DB5

    oklch(42.8% 0.223 298.4)

  • #634C00

    #634C00

    oklch(42.9% 0.088 88.6)

  • #006124

    #006124

    oklch(43% 0.124 148.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #640DB5

    #640DB5

    oklch(42.8% 0.223 298.4)

  • #773E00

    #773E00

    oklch(42.7% 0.102 58.2)

  • #005D50

    #005D50

    oklch(42.8% 0.078 178.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #640DB5

    #640DB5

    oklch(42.8% 0.223 298.4)

  • #990005

    #990005

    oklch(42.9% 0.176 28.4)

  • #4A5600

    #4A5600

    oklch(42.8% 0.1 118.6)

  • #005A65

    #005A65

    oklch(42.8% 0.074 209.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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